首页 > 代码库 > Remote connect to Amazon EC2 instance

Remote connect to Amazon EC2 instance

Remote Connect to Amazon EC2 Linux Instance such as NAT from Windows Using PuTTY

http://docs.aws.amazon.com/gettingstarted/latest/wah-linux/getting-started-deploy-app-connect.html

Note:

  • The username for the linux AMI is ec2-user. (used in PuTTY)
  • Add the following rule to that linux instance security group so that you can connect to that instance via port 22 (SSH):

 


Remote Connect to Amazon EC2 Windows Instance such as web server through Amazon EC2 Linux Instance such as Bastion

Sometimes you need to remote connect to EC2 windows instance through  EC2 linux instance (Bastion)

  • Config as the section "Connect to Your Amazon EC2 Linux such as NAT Instance from Windows Using PuTTY" describes above.

  • Add map between localhost and web server as follows,

Note:

Source port: port for localhost.

Destination: the Windows server you want to connect such as web server.

  • Connect to Your Amazon EC2 Linux such as NAT Instance from Windows Using PuTTY
  • Then you can remote connect to the Windows server as follows,




Remote connect to Amazon EC2 instance