如何连接到 DigitalOcean droplet 上的 SSH?权限被拒绝。(git bash Windows)

如何连接到 DigitalOcean droplet 上的 SSH?权限被拒绝。(git bash Windows)

我如何使用 openssh 连接到 DigitalOcean 中的 droplet 以便安装我的 SSL 证书,我已经将我的 SSH 密钥添加到 droplet 中,并且我的指纹也在那里,但每次我尝试使用连接到用户时,ssh root@(IP)都会出现此错误

The authenticity of host 'IP (IP)' can't be established. ED25519 key fingerprint is SHA256:Uh6argd...(the rest of fingerprint). This key is not known by any other names Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '46.(IP)' (ED25519) to the list of known hosts. root@46.(IP): Permission denied (publickey).

我尝试使用此pbcopy < ~/c/Users/ibrah/.ssh/id_rsa.pub命令,尝试删除密钥并再次生成它们,确保密钥已注册。

我是这个领域的新手,我愿意学习,但这个问题花了我很长时间,我需要完成它,希望有人可以帮助并解释具体该怎么做。

相关内容