delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Tony Benham <tonyb AT benhamhouse DOT co DOT uk> |
Subject: | SSH session "Closed by remote host" |
Date: | Wed, 28 Nov 2007 14:03:45 +0000 (UTC) |
Lines: | 77 |
Message-ID: | <loom.20071128T134446-136@post.gmane.org> |
Mime-Version: | 1.0 |
User-Agent: | Loom/3.14 (http://gmane.org/) |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |