１） 终端 ssh 连接
To access your instance:
- Open an SSH client. (find out how to connect using PuTTY)
- Locate your private key file (ec2key.pem). The wizard automatically detects the key you used to launch the instance.
- Your key must not be publicly viewable for SSH to work. Use this command if needed:
chmod 400 ec2key.pem
- Connect to your instance using its Public IP:
ssh -i ec2key.pem firstname.lastname@example.org ２）putty ssh 连接 参考： https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html