小编ghe*_*kin的帖子

SSH:权限被拒绝(公钥、gssapi-with-mic、密码)

================================================== ==================

更新:原来 sshd 的配置host2不允许密码登录。感谢人们回答这个问题。

================================================== ==================

场景:为我的大学项目与一家公司合作。我需要先使用 PuTTy SSH 进入host1,然后从那里 SSH 进入host2(见下文)。我在 host2 上获得了用户名和密码。

我根本无法访问 host2,所以我不知道它的sshd_config.

这是当我试图使用SSH连接发生了什么host2host1

ff@host1:~$ ssh -v host2
OpenSSH_5.1p1 Debian-5, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /home/ff/.ssh/config
debug1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to host2 [192.*.*.*] port 22.
debug1: Connection established.
debug1: identity file /home/ff/.ssh/identity type -1
debug1: identity file …
Run Code Online (Sandbox Code Playgroud)

ssh ssh-agent

27
推荐指数
2
解决办法
33万
查看次数

标签 统计

ssh ×1

ssh-agent ×1