Posts Tagged: SSH

Proxy using an SSH tunnel

Browse the web through your SSH server by turning it into a proxy server.
Secure Shell (SSH) client-server encrypted connection icon
Continue reading

Simplify your life with an SSH config file and ClusterSSH

Secure Shell (SSH) client-server encrypted connection icon

If you’re anything like me, you probably log in and out of a half dozen remote servers on a daily basis. And if you’re even more like me, you have trouble remembering all of the various usernames, remote addresses and command line options for things like specifying a non-standard connection port or forwarding local ports to the remote machine. And if you sometimes have to do the same thing across many servers, this post is for you.

Continue reading

How to solve “Falling back to the standard locale” in Ubuntu

ubuntuSometimes you may get an error like this:

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

LANGUAGE = (unset),

LC_ALL = (unset),

LC_PAPER = “pt_BR.UTF-8”,

LC_ADDRESS = “pt_BR.UTF-8”,

LC_MONETARY = “pt_BR.UTF-8”,

LC_NUMERIC = “pt_BR.UTF-8”,

LC_TELEPHONE = “pt_BR.UTF-8”,

LC_IDENTIFICATION = “pt_BR.UTF-8”,

LC_MEASUREMENT = “pt_BR.UTF-8”,

LC_TIME = “pt_BR.UTF-8”,

LC_NAME = “pt_BR.UTF-8”,

LANG = “en_US.UTF-8”

are supported and installed on your system.

perl: warning: Falling back to the standard locale (“C”).

Click Continue reading to see how to fix this!

Continue reading

Recovering a Lost Amazon EC2 SSH Key

amazon-ec2If you lose your Amazon EC2 SSH key and can’t log in to your instance, this isn’t a big problem as long as your instance is EBS-based and uses an Elastic IP.

1. Upload your new SSH key, or use one generated by AWS.

2. Create an AMI of your instance.

3. Launch a new instance from your AMI and select the new SSH key.

4. Log in to your instance with the default user (ubuntu or ec2-user, depending on your original AMI).

5. Reassign the Elastic IP to the new instance.

6. Turn off the old instance and terminate it.

Modern Alternatives (No Instance Replacement Required): Today you can usually regain access without cloning an AMI by connecting via AWS Systems Manager Session Manager, pushing a temporary key through EC2 Instance Connect, or stopping the instance to attach its root EBS volume to a temporary rescue VM and updating ~/.ssh/authorized_keys directly.