ssh 公钥登录失败。
时间:2011-03-04
来源:互联网
最近在迁移一台机器A(原公钥主机),迁移到B主机
把A主机admin 和root下.ssh/id_dsa id_dsa.pub都复制到B主机对应的root和admin的.ssh下
B主机admin用户下登录到任意公钥客户机 admin用户下成功 (ssh admin@ip)
在B主机 root 用户下登录到任意公钥客户机 root用户用内网地址就成功,用外网地址少数几台成功,偶尔几台成功(外网网络连通正常)
ssh -vv 看登录的详细过程停在这阶段(见红色字段)
debug2: key: /root/.ssh/identity (0x0)
debug2: key: /root/.ssh/id_rsa (0x0)
debug2: key: /root/.ssh/id_dsa (0x80195f460)
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug1: Trying private key: /root/.ssh/id_rsa
debug1: Offering public key: /root/.ssh/id_dsa
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,keyboard-interactive
debug2: we did not send a packet, disable method
debug1: Next authentication method: keyboard-interactive
debug2: userauth_kbdint
debug2: we sent a keyboard-interactive packet, wait for reply
debug2: input_userauth_info_req
debug2: input_userauth_info_req: num_prompts 1
Password:
把A主机admin 和root下.ssh/id_dsa id_dsa.pub都复制到B主机对应的root和admin的.ssh下
B主机admin用户下登录到任意公钥客户机 admin用户下成功 (ssh admin@ip)
在B主机 root 用户下登录到任意公钥客户机 root用户用内网地址就成功,用外网地址少数几台成功,偶尔几台成功(外网网络连通正常)
ssh -vv 看登录的详细过程停在这阶段(见红色字段)
debug2: key: /root/.ssh/identity (0x0)
debug2: key: /root/.ssh/id_rsa (0x0)
debug2: key: /root/.ssh/id_dsa (0x80195f460)
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug1: Trying private key: /root/.ssh/id_rsa
debug1: Offering public key: /root/.ssh/id_dsa
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,keyboard-interactive
debug2: we did not send a packet, disable method
debug1: Next authentication method: keyboard-interactive
debug2: userauth_kbdint
debug2: we sent a keyboard-interactive packet, wait for reply
debug2: input_userauth_info_req
debug2: input_userauth_info_req: num_prompts 1
Password:
作者: adastudy 发布时间: 2011-03-04
已解决,原A主机的IP和B主机IP对调之后再次ssh ,原本失败的都成功了 - -!
作者: adastudy 发布时间: 2011-03-04
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28