#116 AWS: ssh to a server with private IP only

Reading Time: 1 minute

I was playing with some servers in AWS. One of them had a public IP, but the second one had a private IP only. In order to access the 2nd server with private IP only, open up the key that was given to you for the 2nd server by AWS in PEM format in your favorite text editor. Select the text and copy it to the clipboard. The key looks like this. This key should belong to the 2nd server.

Now, log to the first server with the public IP as ec2-user.
Create a new file with nano or vi and paste the content. Save it as some_file.pem.
Change the permissions.

chmod 600 some_file.pem

Then log to the 2nd server with the private IP.

ssh -i some_file.pem <internal_IP>
#2 PXE boot with ISC DHCP Server on OpenBSD 4.2
#111 AWS: Migrate VMs from VMware vCenter to Amazon AWS using AWS Connector
#80 Amazon AWS: Create WordPress blog using the console and CLI
There are currently no comments.

This site uses Akismet to reduce spam. Learn how your comment data is processed.