ssh - Connection to localhost closed by remote host.

Dom Pazzula dompazz@yahoo.com
Fri Jun 8 17:53:00 GMT 2012


I’m having trouble logging into the ssh service I just set up.  I’ve searched for possible answers but nothing seems to work.

I’ve:
1) Followed the instructions on setting things up (to the best of my knowledge I did everything as instructed -- always possible I did not).
2) made sure my passwd and group files are correct with mkpasswd and mkgroup

I'm operating on a domain so I used
$ mkpasswd -cl -d RA > /etc/passwd
And
$ mkgroup -l -d RA > /etc/group

$ cat /etc/passwd | grep pazzula
pazzula:unused:11596:10513:Dominic Pazzula,U-RA\pazzula,S-1-5-21-1107723029-2547263065-1717318439-1596:/home/pazzula:/bin/bash
$ cat /etc/group | grep Users
Users:S-1-5-32-545:545:

When attempting to ssh to localhost:
$ ssh -v localhost
OpenSSH_6.0p1, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to localhost [::1] port 22.
debug1: Connection established.
debug1: identity file /home/pazzula/.ssh/id_rsa type -1
debug1: identity file /home/pazzula/.ssh/id_rsa-cert type -1
debug1: identity file /home/pazzula/.ssh/id_dsa type -1
debug1: identity file /home/pazzula/.ssh/id_dsa-cert type -1
debug1: identity file /home/pazzula/.ssh/id_ecdsa type -1
debug1: identity file /home/pazzula/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.0
debug1: match: OpenSSH_6.0 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.0
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA 8a:6f:72:53:51:86:b2:84:9d:c5:6b:2f:c7:7f:98:1a
debug1: Host 'localhost' is known and matches the ECDSA host key.
debug1: Found key in /home/pazzula/.ssh/known_hosts:1
debug1: ssh_ecdsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/pazzula/.ssh/id_rsa
debug1: Trying private key: /home/pazzula/.ssh/id_dsa
debug1: Trying private key: /home/pazzula/.ssh/id_ecdsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: password pazzula@localhost's password:
debug1: Authentication succeeded (password).
Authenticated to localhost ([::1]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: channel 0: free: client-session, nchannels 1 Connection to localhost closed by remote host.
Connection to localhost closed.
Transferred: sent 2136, received 1504 bytes, in 0.0 seconds Bytes per second: sent 136923.3, received 96410.4
debug1: Exit status -1

So it looks like I authenticate OK but get kicked off after.  Again, I've searched but cannot find what I need to do to fix this.  Any help would be appreciated.

Thanks
Dominic


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list