Não é possível efetuar login no localhost via SSH, mas a autenticação foi bem-sucedida

1

Quando tento usar ssh para fazer login localmente, ele fecha a conexão.

$ ssh -vvv Chloe@localhost
...
debug2: we sent a publickey packet, wait for reply
debug1: Authentication succeeded (publickey).
Authenticated to localhost ([::1]:22).
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug3: send packet: type 90
debug1: Requesting [email protected]
debug3: send packet: type 80
debug1: Entering interactive session.
debug1: pledge: network
debug3: send packet: type 1
debug1: channel 0: free: client-session, nchannels 1
debug3: channel 0: status: The following connections are open:
  #0 client-session (t3 r-1 i0/0 o0/0 fd 4/5 cc -1)

Connection to localhost closed by remote host.
Connection to localhost closed.
Transferred: sent 1952, received 1412 bytes, in 0.0 seconds
Bytes per second: sent 12675697.7, received 9169101.0
debug1: Exit status -1

No entanto, posso fazer login localmente

Chloe@xps ~
$ login
login: Chloe
Password:
Last login: Thu May 22 00:01:42 from ...

E abra bem os terminais. Está fechando a conexão de outro computador também. Eu segui todos os passos desta resposta ( Por que minha conexão SSH está sendo fechada imediatamente após a aprovação do pubkey? ), mas ainda falha.

$ ls -ld ~/.ssh
drwx------+ 1 Chloe None 0 Jul  5  2014 /home/Chloe/.ssh

Todos os arquivos são 600, grupo Nenhum.

$ ls -l .ssh
total 55
-rw------- 1 Chloe None   395 May 21  2014 authorized_keys
-rw------- 1 Chloe None  1638 Apr  6  2009 authorized_keys.old
-rw------- 1 Chloe None   668 Apr  6  2009 id_dsa
-rw------- 1 Chloe None   603 Apr  6  2009 id_dsa.pub
-rw------- 1 Chloe None  1675 Apr  6  2009 id_rsa
...

sshd em execução como serviço Cygwin.

$ cygrunsrv -Q sshd
Service             : sshd
Display name        : CYGWIN sshd
Current State       : Running
Controls Accepted   : Stop
Command             : /usr/sbin/sshd -D

Autenticação de chave pública ativada e servidor reciclado.

$ grep Pubkey  /etc/sshd_config
PubkeyAuthentication yes

O log do servidor está vazio.

$ ls -l /var/log/sshd.log
-rw-r--r--+ 1 cyg_server None 0 Nov 21 22:55 /var/log/sshd.log

cygwin 2.5.2, Windows 8.1

    
por Chloe 22.11.2016 / 04:44

0 respostas

Tags