Hi --
I have upgraded my cygwin/sshd installation in the last days, and
encounter the folling problem:
starting sshd allows to establish a ssh session ONCE, and subsequent
attempts to connect via ssh fail. In particular, the sshd service
terminates after the first session exits (it disappears in the Win XP
list of running services). A restart of the sshd service allows the
next connection.
Below is a log of three repeated attemts to establish a ssh session. I
connect to "localhost", but the same pattern prevails if the
connection is done from another machine. At the very end of this email
is a copy of the sshd_config file.
One question, possibley related to this problem, when I run
ssh-host-config,
I don't get prompted
with "CYGWIN=". Is this a problem? (the environment var already exists)
Do you have any idea where the problem might be>
Many thanks for your help!
Hans-Peter
>net start sshd
The CYGWIN sshd service is starting.
The CYGWIN sshd service was started successfully.
>ssh -l <user> localhost
<user>@localhost's password:
Environment:
ALLUSERSPROFILE=C:\Documents and Settings\All Users
COMMONPROGRAMFILES=C:\Program Files\Common Files
COMPUTERNAME=<hostname>
COMSPEC=C:\WINDOWS\system32\cmd.exe
CYGWIN=ntsec tty
HOME=/cygdrive/d
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
PATH=/cygdrive/c/software/imagemagick:/cygdrive/c/WINDOWS/system32:/cygd
rive/c
/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program
Files/Common File
s/Adaptec Shared/System:/cygdrive/c/softwa
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 7, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0207
PROGRAMFILES=C:\Program Files
SYSTEMDRIVE=C:
SYSTEMROOT=C:\WINDOWS
TEMP=/cygdrive/c/WINDOWS/TEMP
TERM=cygwin
TMP=/cygdrive/c/WINDOWS/TEMP
USERPROFILE=C:\Documents and Settings\NetworkService
WINDIR=C:\WINDOWS
USER=<user>
LOGNAME=<user>
MAIL=/var/spool/mail/<user>
SHELL=/bin/bash
SSH_CLIENT=127.0.0.1 3030 22
SSH_CONNECTION=127.0.0.1 3030 127.0.0.1 22
SSH_TTY=/dev/tty1
<user>@<hostname> ~ [[ here is a ssh session that is working perfectly
fine]]
$ exit
logout
Connection to localhost closed.
>ssh -l <user> localhost
ssh: connect to host localhost port 22: Connection refused
>net start sshd
The CYGWIN sshd service is starting.
The CYGWIN sshd service was started successfully.
>ssh -l <user> localhost
<user>@localhost's password:
Environment:
ALLUSERSPROFILE=C:\Documents and Settings\All Users
COMMONPROGRAMFILES=C:\Program Files\Common Files
COMPUTERNAME=<hostname>
COMSPEC=C:\WINDOWS\system32\cmd.exe
CYGWIN=ntsec tty
HOME=/cygdrive/d
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
PATH=/cygdrive/c/software/imagemagick:/cygdrive/c/WINDOWS/system32:/cygd
rive/c
/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program
Files/Common File
s/Adaptec Shared/System:/cygdrive/c/softwa
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 7, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0207
PROGRAMFILES=C:\Program Files
SYSTEMDRIVE=C:
SYSTEMROOT=C:\WINDOWS
TEMP=/cygdrive/c/WINDOWS/TEMP
TERM=cygwin
TMP=/cygdrive/c/WINDOWS/TEMP
USERPROFILE=C:\Documents and Settings\NetworkService
WINDIR=C:\WINDOWS
USER=<user>
LOGNAME=<user>
MAIL=/var/spool/mail/<user>
SHELL=/bin/bash
SSH_CLIENT=127.0.0.1 3488 22
SSH_CONNECTION=127.0.0.1 3488 127.0.0.1 22
SSH_TTY=/dev/tty1
<user>@<hostname> ~ [[ here is a ssh session that is working perfectly
fine]]
$ exit
logout
Connection to localhost closed.
>
# $OpenBSD: sshd_config,v 1.69 2004/05/23 23:59:53 dtucker Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/bin:/usr/sbin:/sbin:/usr/bin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options change a
# default value.
Port 22
#Protocol 2,1
#ListenAddress 0.0.0.0
#ListenAddress ::
# HostKey for protocol version 1
#HostKey /etc/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh_host_rsa_key
#HostKey /etc/ssh_host_dsa_key
# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 768
# Logging
#obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO
# Authentication:
#LoginGraceTime 2m
#PermitRootLogin yes
StrictModes no
#MaxAuthTries 6
#RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFile .ssh/authorized_keys
# For this to work you will also need host keys in /etc/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no
# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication mechanism.
# Depending on your PAM configuration, this may bypass the setting of
# PasswordAuthentication, PermitEmptyPasswords, and
# "PermitRootLogin without-password". If you just want the PAM account
and
# session checks to run without PAM authentication, then enable this but
set
# ChallengeResponseAuthentication=no
#UsePAM no
#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
UsePrivilegeSeparation no
#PermitUserEnvironment no
#Compression yes
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10
# no default banner path
#Banner /some/path
# override default of no subsystems
Subsystem sftp /usr/sbin/sftp-server
-- List Information: https://mail.erdelynet.com/mailman/listinfo/ssh/ List Archives: http://erdelynet.com/archive/ssh-l/ To Unsubscribe: Go to https://mail.erdelynet.com/mailman/options/ssh#subscribers and enter your email address at the bottom. If you don't know your password, have it emailed to you. Then unsubscribe.Received on Fri Sep 3 10:24:53 2004
This archive was generated by hypermail 2.1.8 : Fri Jul 29 2005 - 17:34:13 EDT