Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.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
Windows 无法使用授权的\u密钥连接到基于Cygwin的OpenSSH服务器_Windows_Ssh_Cygwin_Openssh_Sshd - Fatal编程技术网

Windows 无法使用授权的\u密钥连接到基于Cygwin的OpenSSH服务器

Windows 无法使用授权的\u密钥连接到基于Cygwin的OpenSSH服务器,windows,ssh,cygwin,openssh,sshd,Windows,Ssh,Cygwin,Openssh,Sshd,我在运行Cygwin的Windows7中设置SSHD服务时遇到问题。 我已经这样做了,它第一次起作用,但在重新启动后,~/.存储在中的公钥。ssh/authorized_keys不允许我从外部CLI访问此计算机。此外,密码授权也不起作用,我甚至尝试使用passwdtestinguser在cygwin中重置密码 到目前为止,我已经采取了以下步骤: 重新安装Cygwin SSHD服务(我还删除了除testinguser之外的其他Windows用户帐户) 再次运行ssh主机配置,如教程中所述 从Cy

我在运行Cygwin的Windows7中设置SSHD服务时遇到问题。 我已经这样做了,它第一次起作用,但在重新启动后,
~/.存储在中的公钥。ssh/authorized_keys
不允许我从外部CLI访问此计算机。此外,密码授权也不起作用,我甚至尝试使用
passwdtestinguser
在cygwin中重置密码

到目前为止,我已经采取了以下步骤:

  • 重新安装Cygwin SSHD服务(我还删除了除testinguser之外的其他Windows用户帐户)
  • 再次运行ssh主机配置,如教程中所述
  • 从Cygwin控制台重置testinguser密码
  • 将权限设置为。授权密钥和父文件夹:

    chmod 700~/.ssh&
    chmod 600~/.ssh/authorized_密钥

  • 禁用Windows Defender防火墙和其他AV软件(httpd工作正常)
下面是
ssh-v
命令的结果:

debug1: Remote protocol version 2.0, remote software version WeOnlyDo 2.1.3
debug1: no match: WeOnlyDo 2.1.3
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.1p1 Debian-4
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Server host key: RSA 5d:9b:19:36:1c:67:1d:c9:ef:91:7c:1e:e8:3b:ba:12
debug1: Host '10.1.0.46' is known and matches the RSA host key.
debug1: Found key in /home/banasiak/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: password,publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/banasiak/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: Authentications that can continue: password,publickey
debug1: Offering RSA public key: banasiak@pc-71-wroc
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: Authentications that can continue: password,publickey
debug1: Trying private key: /home/banasiak/.ssh/id_dsa
debug1: Trying private key: /home/banasiak/.ssh/id_ecdsa
debug1: Next authentication method: password
还有什么我需要检查的吗?SSHD服务正在正确运行,我可以启动和停止它,没有任何错误