Cygwin 上的 Dropbear SSH 不允许无密码登录

Cygwin 上的 Dropbear SSH 不允许无密码登录

我正在使用在 Cygwin、Windows 7、VMware 虚拟机、Windows 8.1 上运行的 Dropbear SSH。在我的物理操作系统上,我有 Cygwin,我正在尝试使用 Cygywin 上的 openssh 进行无密码登录。为了构建它,我必须传递LIBS="-lcrypt -lz"make 才能让它获取 libcrypt 和 zlib。

构建并安装它后,我在物理操作系统上生成了客户端的密钥对,ssh-keygen并将其复制到~/.ssh/authorized_keys每个 Dropbear 的联机帮助页中,然后我使用 启动了 Dropbear dropbear -EF。在确认 VM 上的 Dropbear 守护程序正常启动并显示在 Windows 任务管理器上后,我尝试连接到 VM 并收到一条消息,显示Permission denied (publickey)。我尝试禁用除公钥登录之外的所有登录选项,重新编译Dropbear,但仍然无法工作。

使用详细选项运行客户端会给出以下结果:

Huachimichu@rootrockshooter ~
$ ssh -v -l povrch -x 192.168.91.128
OpenSSH_6.5, OpenSSL 1.0.1f 6 Jan 2014
debug1: Connecting to 192.168.91.128 [192.168.91.128] port 22.
debug1: Connection established.
debug1: identity file /home/Huachimichu/.ssh/id_rsa type 1
debug1: identity file /home/Huachimichu/.ssh/id_rsa-cert type -1
debug1: identity file /home/Huachimichu/.ssh/id_dsa type -1
debug1: identity file /home/Huachimichu/.ssh/id_dsa-cert type -1
debug1: identity file /home/Huachimichu/.ssh/id_ecdsa type -1
debug1: identity file /home/Huachimichu/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/Huachimichu/.ssh/id_ed25519 type -1
debug1: identity file /home/Huachimichu/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.5
debug1: Remote protocol version 2.0, remote software version dropbear_2014.63
debug1: no match: dropbear_2014.63
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
    debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: RSA cc:62:15:b3:5a:4b:07:2c:e2:ef:03:ef:91:b6:9e:23
debug1: Host '192.168.91.128' is known and matches the RSA host key.
debug1: Found key in /home/Huachimichu/.ssh/known_hosts:2
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: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/Huachimichu/.ssh/id_rsa
    debug1: Authentications that can continue: publickey
debug1: Trying private key: /home/Huachimichu/.ssh/id_dsa
debug1: Trying private key: /home/Huachimichu/.ssh/id_ecdsa
debug1: Trying private key: /home/Huachimichu/.ssh/id_ed25519
debug1: No more authentication methods to try.
Permission denied (publickey).

相关内容