OpenSSH no Windows 10 fecha a conexão quando a chave pública está presente

0

Acabei de instalar o OpenSSH na minha máquina Win10 para poder executar comandos do meu Raspberry Pi executando o Raspbian mais recente.

Eu posso fazer login do meu MacBook e do meu Pi para o servidor SSH na minha máquina Win10 com senha. No entanto, se eu gerar uma chave pública por ssh-keygen -t rsa no Pi ou no Mac que eu quero usar para poder fazer o login sem senha (que por exemplo funciona bem do Pi para dois dos meus Macs!) O servidor openSSH no Win10 fecha imediatamente a conexão. Eu só posso conectar usando -o PubkeyAuthentication=no . Com este método, eu também copiei os pubkeys para a máquina Win10, mas nenhuma alteração ... assim que eles estão presentes na máquina cliente, isso está acontecendo.

O log que estou recebendo ao tentar efetuar login é: OpenSSH_6.7p1 Raspbian-5+deb8u3, OpenSSL 1.0.1t 3 May 2016 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug1: Connecting to 90.0.0.2 [90.0.0.2] port 22. debug1: Connection established. debug1: identity file /home/pi/.ssh/id_rsa type 1 debug1: key_load_public: No such file or directory debug1: identity file /home/pi/.ssh/id_rsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/pi/.ssh/id_dsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/pi/.ssh/id_dsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/pi/.ssh/id_ecdsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/pi/.ssh/id_ecdsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/pi/.ssh/id_ed25519 type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/pi/.ssh/id_ed25519-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.7p1 Raspbian-5+deb8u3 debug1: Remote protocol version 2.0, remote software version OpenSSH_7.3 debug1: match: OpenSSH_7.3 pat OpenSSH* compat 0x04000000 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-ctr [email protected] none debug1: kex: client->server aes128-ctr [email protected] none debug1: sending SSH2_MSG_KEX_ECDH_INIT debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: Server host key: ECDSA 26:5e:3e:02:91:90:15:8a:1d:3f:ff:e1:2a:2b:33:8b debug1: Host '90.0.0.2' is known and matches the ECDSA host key. debug1: Found key in /home/pi/.ssh/known_hosts:3 debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received ****USAGE WARNING**** This is a private computer system. This computer system, including all related equipment, networks, and network devices (specifically including Internet access) are provided only for authorized use. This computer system may be monitored for all lawful purposes, including to ensure that its use is authorized, for management of the system, to facilitate protection against unauthorized access, and to verify security procedures, survivability, and operational security. Monitoring includes active attacks by authorized entities to test or verify the security of this system. During monitoring, information may be examined, recorded, copied and used for authorized purposes. All information, including personal information, placed or sent over this system may be monitored. Use of this computer system, authorized or unauthorized, constitutes consent to monitoring of this system. Unauthorized use may subject you to criminal prosecution. Evidence of unauthorized use collected during monitoring may be used for administrative, criminal, or other adverse action. Use of this system constitutes consent to monitoring for these purposes. debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: publickey debug1: Offering RSA public key: /home/pi/.ssh/id_rsa Connection closed by 90.0.0.2

    
por Alpha_Kralle 30.10.2016 / 14:59

1 resposta

0

Eu agora mudei para "PowershellServer", que é gratuito para uso privado e de uma conexão por vez (que é exatamente a minha situação) e suporta autenticação de chave de pub. Funciona bem e é fácil de configurar, pois tem um bom gui.

    
por 21.11.2016 / 14:05