Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加的华为云主机,提示无法连接Authentication failed. 而且jumpserver服务会被加入hosts.deny #3413

Open
zljun2015 opened this issue Nov 5, 2019 · 1 comment

Comments

@zljun2015
Copy link

@zljun2015 zljun2015 commented Nov 5, 2019

[简述你的问题]

添加的华为云主机后,无法连接。
排除了秘钥、密码错误的问题。

使用版本

[请提供你使用的Jumpserver版本 1.x.x 注: 0.3.x不再提供支持]
1.4.10
1.5.3

问题复现步骤

问题1:
新添加的华为云主机,出现无法连接的现象。提示Authentication failed,通过其他机器连接,发现/etc/hosts.deny 有jumpserver服务器的IP地址。jumpserver web管理页面,点击资产的连接测试,失败。
版本为:1.4.10

问题2:
新添加的华为云主机,出现无法连接的现象。提示如下:
Connect asset error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [password publickey none], no supported methods remain

在这种情况下,jumpserver web管理页面,点击资产的连接测试成功。但是通过ssh连接就报上述错误。即使联系华为云解除封锁,也无法通过jumpserver的ssh连接,但是通过jumpserver所在的服务器,通过命令 ssh -i $private_key $host_ip 可以连接成功。

这种情况下,是通过清空jumpserver 的数据库,重启后解决了问题。 版本为:1.5.3

其他

[注:] 完成后请关闭 issue

@zljun2015

This comment has been minimized.

Copy link
Author

@zljun2015 zljun2015 commented Nov 5, 2019

问题1,通过删除有问题的华为云主机、授权,重启jumpserver的所有组件后,解决了问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.