小编Pre*_*leo的帖子

主机接受 SSH 密钥但客户端断开连接

你好,

我在 Fedora 23 安装后遇到了 SSH 问题。

当我不想使用私钥连接到我的远程主机时,我的主机会找到密钥:

debug1: matching key found: file /home/theo/.ssh/authorized_keys, line 1 RSA {REDACTED}
debug1: restore_uid: 0/0
Postponed publickey for theo from {REDACTED} port 60351 ssh2 [preauth]
Connection closed by {REDACTED} [preauth]
debug1: do_cleanup [preauth]
debug1: monitor_read_log: child log fd closed
Run Code Online (Sandbox Code Playgroud)

但正如你看到我的客户自己断开连接

debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/tbouge/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Server accepts key: pkalg …
Run Code Online (Sandbox Code Playgroud)

ssh private-key

9
推荐指数
1
解决办法
1万
查看次数

标签 统计

private-key ×1

ssh ×1