需要帮助让我的SSH密钥在数字海洋飞沫上工作

编程入门 行业动态 更新时间:2024-10-15 18:25:21
本文介绍了需要帮助让我的SSH密钥在数字海洋飞沫上工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

创建新的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密钥在数字海洋飞沫上工作

本文发布于:2023-10-28 04:07:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1535471.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:密钥   海洋   数字   飞沫   工作

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!