Hello. I have successfully been running cygwin with ssh/sshd for a couple
years with no problems. But then suddenly a couple weeks ago sshd started
to act flaky so that I couldn't log into my W2k box from outside. The
problem is that the connection is made successfully, but then no shell
starts up! I get to the point where it says:
Last login: Wed May 14 04:25:25 2003 from [whatever]
but then it just hangs.
I am using a 2-year-old version of cygwin1.dll, but unfornunately I cannot
upgrade it easily because I have so many executables that I have compiled
that do not run under more recent versions of cygwin1.dll. Furthermore,
the latest versions of sshd require cygcrypto.dll, which in turn requires
the most recent version of cygwin1.dll, which I can't install as above!
So, luckily I did a full backup before starting all this messing around
about a week ago (some of you may recall another message I sent about a
week ago; that was when I was trying to upgrade). I have now restored
my old everything, and am back to everything working except sshd as above.
Does anybody have any idea why sshd would make a connection, but then fail
to start a shell? I have put an "echo hi there!" at the top of my
/etc/profile, and even that doesn't get executed even though it's normally
the first thing I see when bash starts up. And a "ps -W" from a different
window verifies that the first sshd has forked a second one, but the second
one has not fork'd a shell.
Here is a transcript of "ssh -v localhost":
OpenSSH_3.1p1, SSH protocols 1.5/2.0, OpenSSL 0x0090602f
debug1: Reading configuration data /usr/local/etc/ssh_config
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: restore_uid
debug1: ssh_connect: getuid 500 geteuid 500 anon 1
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: temporarily_use_uid: 500/513 (e=500)
debug1: restore_uid
debug1: temporarily_use_uid: 500/513 (e=500)
debug1: restore_uid
debug1: Connection established.
debug1: read PEM private key done: type DSA
debug1: read PEM private key done: type RSA
debug1: identity file //d/wayne/.ssh/identity type -1
debug1: identity file //d/wayne/.ssh/id_rsa type -1
debug1: identity file //d/wayne/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_3.1p1
debug1: match: OpenSSH_3.1p1 pat OpenSSH*
Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.1p1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: dh_gen_key: priv key bits set: 128/256
debug1: bits set: 1599/3191
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'localhost' is known and matches the RSA host key.
debug1: Found key in //d/wayne/.ssh/known_hosts:1
debug1: bits set: 1568/3191
debug1: ssh_rsa_verify: signature correct
debug1: kex_derive_keys
debug1: newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: waiting for SSH2_MSG_NEWKEYS
debug1: newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: done: ssh_kex2.
debug1: send SSH2_MSG_SERVICE_REQUEST
debug1: service_accept: ssh-userauth
debug1: got SSH2_MSG_SERVICE_ACCEPT
debug1: authentications that can continue: publickey,password,keyboard-interactive
debug1: next auth method to try is publickey
debug1: try privkey: //d/wayne/.ssh/identity
debug1: try privkey: //d/wayne/.ssh/id_rsa
debug1: try privkey: //d/wayne/.ssh/id_dsa
debug1: next auth method to try is keyboard-interactive
debug1: authentications that can continue: publickey,password,keyboard-interactive
debug1: next auth method to try is password
Admin@localhost's password:
debug1: packet_send2: adding 64 (len 56 padlen 8 extra_pad 64)
debug1: ssh-userauth2 successful: method password
debug1: channel 0: new [client-session]
debug1: send channel open 0
debug1: Entering interactive session.
debug1: ssh_session2_setup: id 0
debug1: channel request 0: pty-req
debug1: channel request 0: shell
debug1: fd 3 setting TCP_NODELAY
debug1: channel 0: open confirm rwindow 0 rmax 32768
Last login: Wed May 14 04:29:43 2003 from localhost
[hangs here]
Thanks!
-- List Information: http://tech.erdelynet.com/mailman/listinfo/ssh-l/ List Archives: http://erdelynet.com/archive/ssh-l/ To Unsubscribe: Go to http://tech.erdelynet.com/mailman/listinfo/ssh-l/ and enter your email address at the bottom to "Edit Options". If you don't know your password, have it emailed to you. Then unsubscribe.Received on Wed May 14 04:45:02 2003
This archive was generated by hypermail 2.1.8 : Fri Jul 29 2005 - 17:33:54 EDT