1、獲取 ***.pem 文件
該文件是服務的證書文件,現在的AWS服務器只支持下載pem的證書
2、確認服務的賬號
For Amazon Linux 2 or the Amazon Linux AMI, the user name is ec2-user.
For a CentOS AMI, the user name is centos.
For a Debian AMI, the user name is admin or root.
For a Fedora AMI, the user name is ec2-user or fedora.
For a RHEL AMI, the user name is ec2-user or root.
For a SUSE AMI, the user name is ec2-user or root.
For an Ubuntu AMI, the user name is ubuntu.
Otherwise, if ec2-user and root don't work, check with the AMI provider.
根據你開的不同的服務器類型,使用不同的賬號,比如我使用的是Amazon Linux AMI服務器,那麼我的默認賬號是ec2-user
3、準備SSH客戶端,有很多好用的客戶端
這裏我使用的是SecureCRT客戶端,但是很遺憾的是這個客戶端如果不預先配置好,無法配置pem的祕鑰。但是可以預先配置好久可以了,如下圖:
提前配置好,就可以使用pem格式的祕鑰文件了