Ubuntu 如何解决权限被拒绝(公钥)错误?
我正在克隆ghost open blog cms,可以选择通过数字海洋运行vps。选择此方法将创建液滴。下一步是作为用户登录root@XXXXX 这样做时,我得到了可怕的权限被拒绝(公钥)。我重新创建了ssh密钥并在digital ocean中进行了更新,但这并没有解决问题 运行Ubuntu 如何解决权限被拒绝(公钥)错误?,ubuntu,ssh,Ubuntu,Ssh,我正在克隆ghost open blog cms,可以选择通过数字海洋运行vps。选择此方法将创建液滴。下一步是作为用户登录root@XXXXX 这样做时,我得到了可怕的权限被拒绝(公钥)。我重新创建了ssh密钥并在digital ocean中进行了更新,但这并没有解决问题 运行ssh-v时root@xxxx命令输出如下: OpenSSH_8.1p1, LibreSSL 2.7.3 debug1: Reading configuration data /etc/ssh/ssh_config de
ssh-v时root@xxxx
命令输出如下:
OpenSSH_8.1p1, LibreSSL 2.7.3
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 47: Applying options for *
debug1: Connecting to xxx [xxx] port 22.
debug1: Connection established.
debug1: identity file /Users/dad/.ssh/id_rsa type 0
debug1: identity file /Users/dad/.ssh/id_rsa-cert type -1
debug1: identity file /Users/dad/.ssh/id_dsa type -1
debug1: identity file /Users/dad/.ssh/id_dsa-cert type -1
debug1: identity file /Users/dad/.ssh/id_ecdsa type -1
debug1: identity file /Users/dad/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/dad/.ssh/id_ed25519 type -1
debug1: identity file /Users/dad/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/dad/.ssh/id_xmss type -1
debug1: identity file /Users/dad/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.1
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.2p1 Ubuntu-4ubuntu0.2
debug1: match: OpenSSH_8.2p1 Ubuntu-4ubuntu0.2 pat OpenSSH* compat 0x04000000
debug1: Authenticating to xxx as 'root'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:ecNEC3rocsntZyTMyGGH7MHfMoMufrPOmG8hPRgkwzs
debug1: Host 'xxx' is known and matches the ECDSA host key.
debug1: Found key in /Users/dad/.ssh/known_hosts:1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /Users/dad/.ssh/id_rsa RSA SHA256:/2EjDyRz3HYYyLqEegdjzEy2PfgIGnMNXvwbPzMgRqg
debug1: Will attempt key: /Users/dad/.ssh/id_dsa
debug1: Will attempt key: /Users/dad/.ssh/id_ecdsa
debug1: Will attempt key: /Users/dad/.ssh/id_ed25519
debug1: Will attempt key: /Users/dad/.ssh/id_xmss
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /Users/dad/.ssh/id_rsa RSA SHA256:/2EjDyRz3HYYyLqEegdjzEy2PfgIGnMNXvwbPzMgRqg
debug1: Authentications that can continue: publickey
debug1: Trying private key: /Users/dad/.ssh/id_dsa
debug1: Trying private key: /Users/dad/.ssh/id_ecdsa
debug1: Trying private key: /Users/dad/.ssh/id_ed25519
debug1: Trying private key: /Users/dad/.ssh/id_xmss
debug1: No more authentication methods to try.
root@xxxxx: Permission denied (publickey).
OpenSSH_8.1p1,LibreSSL 2.7.3
debug1:读取配置数据/etc/ssh/ssh\u config
debug1:/etc/ssh/ssh\u配置第47行:应用*
debug1:连接到xxx[xxx]端口22。
debug1:已建立连接。
debug1:标识文件/Users/dad/.ssh/id\u rsa类型0
debug1:identity file/Users/dad/.ssh/id\u rsa-cert类型-1
debug1:identity file/Users/dad/.ssh/id_dsa type-1
debug1:identity file/Users/dad/.ssh/id_dsa-cert type-1
debug1:identity file/Users/dad/.ssh/id_ecdsa type-1
debug1:identity file/Users/dad/.ssh/id_ecdsa-cert type-1
debug1:identity file/Users/dad/.ssh/id_ed25519 type-1
debug1:identity file/Users/dad/.ssh/id_ed25519-cert type-1
debug1:identity file/Users/dad/.ssh/id_xmss type-1
debug1:identity file/Users/dad/.ssh/id_xmss-cert type-1
debug1:本地版本字符串SSH-2.0-OpenSSH_8.1
debug1:远程协议版本2.0,远程软件版本OpenSSH_8.2p1 Ubuntu-4ubuntu0.2
debug1:match:OpenSSH_8.2p1 Ubuntu-4ubuntu0.2 pat OpenSSH*compat 0x04000000
debug1:将xxx身份验证为“根”
debug1:SSH2\u MSG\u KEXINIT已发送
debug1:SSH2\u MSG\u KEXINIT已收到
debug1:kex:算法:curve25519-sha256
debug1:kex:主机密钥算法:ecdsa-sha2-nistp256
debug1:kex:server->client cipher:chachacha20-poly1305@openssh.comMAC:压缩:无
debug1:kex:client->server cipher:chachacha20-poly1305@openssh.comMAC:压缩:无
debug1:需要SSH2\u MSG\u KEX\u ECDH\u回复
debug1:服务器主机密钥:ecdsa-sha2-nistp256 SHA256:ECNEC3ROCSNTZYTMYGGH7MHFMOMUFRPOMG8HPRGWZS
debug1:主机“xxx”已知并与ECDSA主机密钥匹配。
debug1:在/Users/dad/.ssh/known_hosts中找到密钥:1
debug1:在134217728块之后重新键入
debug1:SSH2\u MSG\u已发送新密钥
debug1:应为SSH2\u MSG\u NEWKEYS
debug1:SSH2\u MSG\u接收到新密钥
debug1:在134217728块之后重新输入
debug1:将尝试密钥:/Users/dad/.ssh/id\u rsa rsa SHA256:/2ejdyrz3hyyyylqeegdjzey2pfgignnxvwbpzmgrqg
debug1:将尝试密钥:/Users/dad/.ssh/id\u dsa
debug1:将尝试密钥:/Users/dad/.ssh/id\u ecdsa
debug1:将尝试密钥:/Users/dad/.ssh/id_ed25519
debug1:将尝试密钥:/Users/dad/.ssh/id\u xmss
debug1:SSH2\u MSG\u EXT\u接收到信息
debug1:kex_输入_外部_信息:服务器信号algs=
debug1:SSH2\u消息\u服务\u接收
debug1:可以继续的身份验证:公钥
debug1:下一个身份验证方法:公钥
debug1:提供公钥:/Users/dad/.ssh/id_rsa rsa SHA256:/2ejdyrz3hyyyylqeegdjzey2pfgignnxvwbpzmgrqg
debug1:可以继续的身份验证:公钥
debug1:正在尝试私钥:/Users/dad/.ssh/id\u dsa
debug1:正在尝试私钥:/Users/dad/.ssh/id\u ecdsa
debug1:正在尝试私钥:/Users/dad/.ssh/id_ed25519
debug1:正在尝试私钥:/Users/dad/.ssh/id\u xmss
debug1:不再尝试验证方法。
root@xxxxx:权限被拒绝(公钥)。
你知道如何处理这个问题吗?我已经解决了这个问题,并将解释如何解决 我的问题是,即使在重新设置水滴中的密码后,我的密码仍不被接受 “控制台中不接受密码”信息可在此处找到 我跟随引导进入了此处链接的恢复过程:
- 断电或停止液滴
- 选择从恢复ISO启动
- 再次打开水滴
- 单击控制台
- 我选择了选项1,然后是3,然后是6
- 在此之后,我关闭了droplet并选择了从硬盘启动
- 通过访问控制台,我可以登录并输入密码,密码已被接受,ghost安装已成功开始并完成