不使用 KeyPair 无法连接到 Ubuntu ami
unable to connect to Ubuntu ami without using KeyPair
我已经使用
在 aws 中构建了一个 AMI
Ubuntu Server 16.04 LTS (HVM), SSD Volume Type - ami-0d77397e
现在我可能误解了这一点,但我不想使用密钥对,因为我们在团队中共享这个 ami。它在一个锁定到我们 IP 的安全组中,所以我只想能够使用 user/pass
登录
当我尝试连接时,我收到用户名提示,我在按回车键时输入用户名 Ubuntu 我收到此提示:
Disconnected: No supported authentication methods available (server sent: publickey)
您应该使用密钥对 (multiple, no need to share them), but if you really are resistant then you can enable password logins.
您可以创建 unix 用户而不是共享密钥,例如
1) sudo adduser username -- 它会要求你输入密码和其他详细信息
2) 编辑 /etc/ssh/sshd_config 设置
PasswordAuthentication 是
3)重新启动ssh守护进程
sudo 服务 ssh 重启
现在通过说 ssh username@ec2_ip 重新登录并输入您在 1.
中刚刚创建的密码
我已经使用
在 aws 中构建了一个 AMIUbuntu Server 16.04 LTS (HVM), SSD Volume Type - ami-0d77397e
现在我可能误解了这一点,但我不想使用密钥对,因为我们在团队中共享这个 ami。它在一个锁定到我们 IP 的安全组中,所以我只想能够使用 user/pass
登录当我尝试连接时,我收到用户名提示,我在按回车键时输入用户名 Ubuntu 我收到此提示:
Disconnected: No supported authentication methods available (server sent: publickey)
您应该使用密钥对 (multiple, no need to share them), but if you really are resistant then you can enable password logins.
您可以创建 unix 用户而不是共享密钥,例如 1) sudo adduser username -- 它会要求你输入密码和其他详细信息 2) 编辑 /etc/ssh/sshd_config 设置 PasswordAuthentication 是 3)重新启动ssh守护进程 sudo 服务 ssh 重启
现在通过说 ssh username@ec2_ip 重新登录并输入您在 1.
中刚刚创建的密码