Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Openssh突然无法在我的Windows上运行_Windows_Openssh_Ssh Agent - Fatal编程技术网

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

Openssh突然无法在我的Windows上运行,windows,openssh,ssh-agent,Windows,Openssh,Ssh Agent,我使用gitbash登录以打开托管在windows机器中的ssh服务器 我使用的命令是 ssh -D 127.0.0.1:8080 user@ssh-server -i ssh_host_rsa_key -vvv 它在过去几个月内工作,但突然不起作用。也许您应该确保您的公钥包含在目标计算机上的.ssh/authorized_keys文件中 另一种方法是更改远程服务器中的sshd_配置文件,并将PasswordAuthentication从no设置为yes,然后重新启动ssh守护进程我已经验证

我使用gitbash登录以打开托管在windows机器中的ssh服务器 我使用的命令是

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


它在过去几个月内工作,但突然不起作用。

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


另一种方法是更改远程服务器中的sshd_配置文件,并将PasswordAuthentication从no设置为yes,然后重新启动ssh守护进程

我已经验证了第一个守护进程,并且已经正确添加了密钥,私钥称为ssh_host_rsa_key,这是正确的密钥对。如果我将否更改为yes我需要一个密码,对吗?但我需要钥匙才能登录。
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).