Openssh突然无法在我的Windows上运行

时间:2018-07-05 07:05:04

标签: windows openssh ssh-agent

我使用git bash登录以打开Windows机器中托管的ssh服务器 我使用的命令是

ssh -D 127.0.0.1:8080 user@ssh-server -i ssh_host_rsa_key -vvv

OpenSSH_7.1p2, OpenSSL 1.0.2g  1 Mar 2016
dsa-sha2-nistp521
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
/c/Users/zhjun/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys from cn-zhjun-w10
debug3: hostkeys_foreach: reading file "/c/Users/zhjun/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /c/Users/zhjun/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys from 10.172.18.113
debug1: Host 'cn-zhjun-w10' is known and matches the ECDSA host key.
debug1: Found key in /c/Users/zhjun/.ssh/known_hosts:1
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: ssh_host_rsa_key (0x60006bc70), explicit
debug1: Authentications that can continue: publickey,keyboard-interactive
debug3: start over, passed a different list publickey,keyboard-interactive
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: ssh_host_rsa_key
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug2: input_userauth_pk_ok: fp SHA256:sZstaNxene7qmdvgfK91zjtQQ4Oeqb+aS9X7//paJo4
debug3: sign_and_send_pubkey: RSA SHA256:sZstaNxene7qmdvgfK91zjtQQ4Oeqb+aS9X7//paJo4
debug1: Authentications that can continue: publickey,keyboard-interactive
debug2: we did not send a packet, disable method
debug3: authmethod_lookup keyboard-interactive
debug3: remaining preferred: password
debug3: authmethod_is_enabled keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug2: userauth_kbdint
debug2: we sent a keyboard-interactive packet, wait for reply
debug1: Authentications that can continue: publickey,keyboard-interactive
debug3: userauth_kbdint: disable: no info_req_seen
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey,keyboard-interactive).

它在最近几个月有效,但突然不起作用。

1 个答案:

答案 0 :(得分:0)

也许您应该确保您的公钥包含在目标计算机上的.ssh / authorized_keys文件中。

其他方法是更改​​远程服务器中的 sshd_config 文件,并将 PasswordAuthentication 设置为并重新启动ssh守护程序