SSH访问AWS服务器的用户名
AWS访问不同的发行版使用的用户名不一样,真蛋疼……
具体官方文档说明如下: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html#putty-ssh
For user_name, be sure to specify the appropriate user name for your AMI. For example:
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.
翻译一下:
关于用户名,请确保为您的AMI指定适当的用户名。例如:
对于Amazon Linux 2或Amazon Linux AMI,用户名是ec2-user。
对于CentOS AMI,用户名是centos。
对于Debian AMI,用户名是admin或root。
对于Fedora AMI,用户名是ec2-user或fedora。
对于RHEL AMI,用户名是ec2-user或root。
对于SUSE AMI,用户名是ec2-user或root。
对于Ubuntu AMI,用户名是ubuntu。
其他情况,如果ec2-user和root不能正常使用,请与AMI提供商联系。