Eu instantaneamente me desconecto do SSH (quase bloqueado)

0

Não consigo entrar no meu servidor Debian Wheezy via SSH.

Alterei as opções do Ciphers e do KeyExchange em ssh_config e sshd_config. O estranho é que fiz as mesmas alterações em duas outras máquinas idênticas e não tive problemas.

Felizmente eu tenho acesso VNC para entrar na máquina para fazer alterações.

Eu agora reverti minhas configurações ssh de volta ao normal, mas o problema persiste:

debug1: Connecting to myserv.com [server_ip] port 443.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
debug3: Could not load "/Users/antd/.ssh/id_rsa" as a RSA1 public key
debug1: identity file /Users/antd/.ssh/id_rsa type -1
debug1: identity file /Users/antd/.ssh/id_rsa-cert type -1
debug1: identity file /Users/antd/.ssh/id_dsa type -1
debug1: identity file /Users/antd/.ssh/id_dsa-cert type -1
debug1: identity file /Users/antd/.ssh/id_ecdsa type -1
debug1: identity file /Users/antd/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/antd/.ssh/id_ed25519 type -1
debug1: identity file /Users/antd/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.0p1 Debian-4+deb7u2
debug1: match: OpenSSH_6.0p1 Debian-4+deb7u2 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug3: put_host_port: [myserv.com]:443
debug3: load_hostkeys: loading entries for host "[myserv.com]:443" from file "/Users/antd/.ssh/known_hosts"
debug3: load_hostkeys: loaded 0 keys
debug1: SSH2_MSG_KEXINIT sent
disconnected

E depois de reiniciar o serviço SSH:

sh-4.2$ sudo /etc/init.d/ssh restart
Could not load host key: /etc/ssh/ssh_host_rsa_key
[....] Restarting OpenBSD Secure Shell server: sshdCould not load host key: /etc/ssh/ssh_host_rsa_key

O SSH nem mesmo está pedindo minha senha ...

Eu apreciaria muito se alguém pudesse me ajudar a recuperar o SSH !!

    
por OuchThatHurts 14.01.2015 / 19:55

1 resposta

1

Corrigi o problema ao emitir este comando:

sudo ssh-keygen -t rsa -f / etc / ssh / ssh_host_rsa_key

Por alguma razão, tudo funciona agora.

    
por 14.01.2015 / 20:03

Tags