sshd issue (talvez ChallengeResponseAuthentication ou 'unknown key type' relacionado)

1

Depois de adicionar um novo usuário e sua chave de pub a ~ / .ssh / authorized_keys, não consegui ssh para minha fatia (Permissão negada (publickey)).

Então eu mudei (em / etc / ssh / sshd_config) ChallengeResponseAuthentication de no para yes e adicionei ele a AllowUsers. Então, depois de tentar o ssh: Conexão fechada pelo meu.IP.aqui

Então eu mudei o ChallengeResponseAuthentication de volta para não,

'sudo kill 'cat /var/run/sshd.pid' && /usr/sbin/sshd'

e desde então eu não consigo fazer login com meu usuário admin ( piotr ): Conexão fechada por my.IP.aqui.

$ ssh -p my.port.here [email protected] -vvv
OpenSSH_5.1p1, OpenSSL 0.9.7l 28 Sep 2006
debug1: Reading configuration data /etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to my.IP.here [my.IP.here] port my.port.here.
debug1: Connection established.
debug1: identity file /Users/piotr/.ssh/identity type -1
debug3: Not a RSA1 key file /Users/piotr/.ssh/id_rsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: missing keytype
debug1: identity file /Users/piotr/.ssh/id_rsa type 1
debug1: identity file /Users/piotr/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1p1 Debian-5ubuntu1
debug1: match: OpenSSH_5.1p1 Debian-5ubuntu1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
Connection closed by my.IP.here
    
por piobyz 24.08.2009 / 13:19

2 respostas

1

A resposta está nesse log:

unknown key type '-----BEGIN'

Parece que você de alguma forma estragou sua chave privada e o ssh não consegue mais lê-la.

    
por 24.08.2009 / 13:29
0

tipo de chave desconhecida '----- BEGIN' aparece mesmo em conexões normais. Não é algo ruim. Eu também recebo estes: debug2: key_type_from_name: tipo de chave desconhecido '----- BEGIN' debug2: key_type_from_name: tipo de chave desconhecida 'Proc-Type:' debug2: key_type_from_name: tipo de chave desconhecido 'DEK-Info:' debug2: key_type_from_name: tipo de chave desconhecido '----- END'

em todas as minhas conexões (autenticação de chave pública ou não)

    
por 27.08.2009 / 19:45

Tags