SSH session "Closed by remote host"
Tony Benham
tonyb@benhamhouse.co.uk
Wed Nov 28 14:57:00 GMT 2007
I have cygwin with ssh using public key installed on a windows machine, and I've
been able to login from another machine fine until recently. If I connect via
ssh, the client is authenticated, but then the remote host closes the
connection. It does this if I run ssh localhost on the ssh server or from the
remote client.
The sshd daemon is running fine.
I've renamed /etc/hosts.allow and /etc/hosts.deny in case these were causing a
problem. I've checked /etc/passwd contains a valid shell for the users I'm
connecting as, so I have :/bin/bash at the end of each user line.
The authorized_keys file does not contain any commands/restrictions as to no-pty
etc.
I've rerun mkpasswd/mkgroup to make sure the passwd/group file are ok.
The sshd log shows authentication is fine. I've included log output from
authentication ok line.
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: monitor_child_preauth: admin has
been authenticated by privileged process
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: Entering interactive session for SS
H2.
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: server_init_dispatch_20
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: server_input_channel_open: ctype se
ssion rchan 0 win 1048576 max 16384
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: input_session_request
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: channel 0: new [server-session]
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: session_new: init
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: session_new: session 0
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: session_open: channel 0
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: session_open: session 0: link with
channel 0
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: server_input_channel_open: confirm
session
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: server_input_channel_req: channel 0
request pty-req reply 0
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: session_by_channel: session 0 chann
el 0
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: session_input_channel_req: session
0 req pty-req
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: Allocating pty.
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: session_pty_req: session 0 alloc /d
ev/tty1
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: server_input_channel_req: channel 0
request shell reply 0
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: session_by_channel: session 0 chann
el 0
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: session_input_channel_req: session
0 req shell
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: Received SIGCHLD.
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: session_by_pid: pid 6044
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: session_exit_message: session 0 cha
nnel 0 pid 6044
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: session_exit_message: release chann
el 0
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: session_pty_cleanup: session 0 rele
ase /dev/tty1
Nov 28 13:50:41 ORAC sshd: PID 5712: syslogin_perform_logout: logout() returned
an error
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: session_by_channel: session 0 chann
el 0
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: session_close_by_channel: channel 0
child 0
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: session_close: session 0 pid 0
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: channel 0: free: server-session, nc
hannels 1
Nov 28 13:50:41 ORAC sshd: PID 5712: Connection closed by 192.168.1.6
Nov 28 13:50:41 ORAC sshd: PID 5712: debug1: do_cleanup
Nov 28 13:50:41 ORAC sshd: PID 5712: Closing connection to 192.168.1.6
Can anyone suggest something I've screwed up in the setup or suggest some debug
I could try ?
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list