AWS's EC2 server is certified with a key, and when you create instance, you are prompted to create a key pair, prompting you to download a Xxx.pem key file to your local hard disk. Here are the steps to connect to EC2 via SECURECRT:
1. Upload the Xxx.pem file to a Linux system and modify its permissions to 600. Order chmod Xxx.pem
2. Generate public key. pub file Command ssh-keygen-e-F XXX.PEM > Xxx.pem.pub
3. Download the generated files locally (two files are best placed in the same directory).
4. New connection in SECURECRT, protocol select SSH2, hostname fill Public DNS (this address EC2 console will provide), user name fill Ec2-user (different types of operating system, user name is not the same, see the link for details). The contents are as follows:
The correct user name is as follows:
For Amazon Linux Amis, the user name is ec2-user .
For RHEL5 Amis, the user name is root or ec2-user .
For Ubuntu AMI, the user name is ubuntu .
For Fedora AMI, the user name is fedora or ec2-user .
For SUSE Linux, the user name is root or ec2-user .
In addition, if ec2-user and root not available, check with the AMI vendor.
5. Modify the public key (PublicKey)
Click "Properties" option, select "Use Session public key" to fill in the generated XXX.pem.pub file absolute path, click "OK"
Click Connect to connect to the server
Securt CRT Connection AWS EC2