创建新的Droplet时,我检查SSH选项并粘贴我的公钥(在我的AWS上正常工作)Droplet,但无法登录到新的Droplet。两个实例都使用ubuntu。通过阅读文档,我了解到,如果在创建实例时提供了SSH密钥,则不会发送带有root密码的电子邮件。不知道为什么提示我输入密码。协助将不胜感激。
When creating the new droplet I check the SSH option and paste my public key (that works fine on my AWS) Droplet but unable to login to new droplet. Both instances are using ubuntu. From reading the documentation, I understand that if SSH keys are provide at the creation of an instance, no email with root password is sent. Not sure why I am being prompted for password. Assistance would be appreciated.
这是我尝试登录的会话:
here is the session on my attempt to login:
TLOMBARD-M-T8T8:.ssh tlombard$ ssh root@107.170.209.13 The authenticity of host '107.170.209.13 (107.170.209.13)' can't be established. ECDSA key fingerprint is SHA256:CsusP0faav9SqEfSXpXpMjeEEp2GXrT77OT35x3TJco. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '107.170.209.13' (ECDSA) to the list of known hosts. root@107.170.209.13's password: Permission denied, please try again. root@107.170.209.13's password: Permission denied, please try again.推荐答案
首先请确保您正确输入密码,然后更新您的 sshd_config 文件以启用密码身份验证。
First ensure that you are typing your password correctly, then update your sshd_config file enabling Password authentication.
在ubuntu cli上执行: sudo nano / etc / ssh / sshd_config
On your ubuntu cli execute: sudo nano /etc/ssh/sshd_config
然后将密码验证行从 PasswordAuthontication:否更改为 PasswordAuthentication:是
Then update Password authentication line from PasswordAuthontication: no to PasswordAuthentication:yes
执行 sudo服务ssh restart 重启ssh服务
Restart your ssh service executing sudo service ssh restart
更多推荐
需要帮助让我的SSH密钥在数字海洋飞沫上工作
发布评论