Conecte-se ao meu mac no meu Ubuntu falhou!

1

Eu ativei o login remoto na preferência do sistema, mas consegui isso quando tento conectar meu mac a partir do ubuntu. Alguma ideia?

$ ssh -vvv [email protected]
OpenSSH_5.9p1 Debian-5ubuntu1.1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /home/danny/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 129.74.164.130 [129.74.164.130] port 22.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/danny/.ssh/id_rsa" as a RSA1 public key
debug1: identity file /home/danny/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/danny/.ssh/id_rsa-cert type -1
debug1: identity file /home/danny/.ssh/id_dsa type -1
debug1: identity file /home/danny/.ssh/id_dsa-cert type -1
debug1: identity file /home/danny/.ssh/id_ecdsa type -1
debug1: identity file /home/danny/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9
debug1: match: OpenSSH_5.9 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.1
debug2: fd 3 setting O_NONBLOCK
debug3: load_hostkeys: loading entries for host "129.74.164.130" from file "/home/danny/.ssh/known_hosts"
debug3: load_hostkeys: loaded 0 keys
debug1: SSH2_MSG_KEXINIT sent
Connection closed by 129.74.164.130
Daniel
fonte
As duas máquinas estão na mesma rede? Não há firewalls no meio?
Bart Doe

Respostas:

1

Olhando para a saída, parece haver algum problema com suas chaves RSA. Pesquisei isso e li um comentário no Superuser: https://superuser.com/questions/408565/i-am-getting-this-error-ssh-exchange-identification onde eles falam, sobre os quais você deve permitir seu usuário para efetuar login, dentro do arquivo sshd_config no computador ao qual você está se conectando (no seu caso, o seu computador OSX):

sudo nano /etc/sshd_config
AllowUsers yourname@*

Eu nunca encontrei esse problema, mas vale a pena tentar na minha opinião.

Hoshts
fonte
No meu mac ou no meu Ubuntu?
Daniel
Está no OSX (aquele ao qual você se conecta). Edição de esclarecimentos feita em resposta.
Hoshts 14/10
Eu tentei, mas sem sucesso. Mesma mensagem de erro de antes
Daniel
Você poderia tentar o primeiro comentário no post mudando para tipo 2 chave RSA com a adição de -2 à chamada ssh:ssh -2 ...
Hoshts
Termino com a mesma mensagem com "ssh -2 -vvv [email protected]"
Daniel