저는 Cygwin, Windows 7, VMware 가상 머신, Windows 8.1에서 실행되는 Dropbear SSH를 사용하고 있습니다. 내 실제 OS에는 Cygwin이 있고 Cygywin에서 openssh를 사용하여 비밀번호 없는 로그인을 시도하고 있습니다. 이를 빌드하려면 LIBS="-lcrypt -lz"
make를 전달하여 libcrypt 및 zlib를 가져와야 합니다.
빌드하고 설치한 후 물리적 OS에서 클라이언트의 키쌍을 생성 ssh-keygen
하고 각 Dropbear의 맨페이지에 복사한 ~/.ssh/authorized_keys
다음 dropbear -EF
. VM의 Dropbear 데몬이 정상적으로 시작되고 Windows 작업 관리자에 나타나는 것을 확인한 후 VM에 연결하려고 하면 이라는 메시지가 나타납니다 Permission denied (publickey)
. 공개 키 로그인을 제외한 모든 로그인 옵션을 비활성화하고 Dropbear를 다시 컴파일해 보았지만 여전히 작동하지 않습니다.
verbose 옵션을 사용하여 클라이언트를 실행하면 다음과 같은 결과가 나타납니다.
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).