[NTLUG:Discuss] SSH Confusion

MadHat madhat at unspecific.com
Mon Mar 1 14:32:41 CST 2004


OK, I am running a Slackware server and everything has been going fine 
until today.  This is a Slack 9.1, I think.  Anyway I went to ssh in 
today and got:

$ ssh whiterabbit
Last login: Mon Mar  1 14:12:42 2004 from madhat
Linux 2.6.1.
Connection to whiterabbit closed.


That''s  it.  Now I can ssh with a command and it works fine, so say 
for instance:

$ ssh whiterabbit "tail -5 /var/log/all"
Mar  1 14:22:56 whiterabbit kernel: IN=eth0 OUT= 
MAC=ff:ff:ff:ff:ff:ff:00:0c:f1:9d:7a:48:08:00 SRC=xx.xx.xx.xx 
DST=255.255.255.255 LEN=64 TOS=0x00 PREC=0x00 TTL=128 ID=39310 
PROTO=UDP SPT=2097 DPT=712 LEN=44
Mar  1 14:22:57 whiterabbit sshd[27244]: Accepted publickey for madhat 
from 63.250.222.254 port 24440 ssh2
Mar  1 14:23:08 whiterabbit sshd[27248]: Accepted publickey for madhat 
from 63.250.222.254 port 24519 ssh2
Mar  1 14:23:11 whiterabbit kernel: IN=eth0 OUT= 
MAC=ff:ff:ff:ff:ff:ff:00:0c:f1:9d:7a:48:08:00 SRC=xx.xx.xx.xx 
DST=255.255.255.255 LEN=64 TOS=0x00 PREC=0x00 TTL=128 ID=39311 
PROTO=UDP SPT=2098 DPT=712 LEN=44
Mar  1 14:23:20 whiterabbit sshd[27252]: Accepted publickey for madhat 
from 63.250.222.254 port 24681 ssh2


and I can get a shell, sort of, by sshing and execing bash, but it is a 
little more than messed up without the proper terminal controls.  I 
have been searching, but have not found anything relevant yet.

I have verified that my shell is correct in /etc/passwd
I have verified that nothing has changed and nothing looks wrong with 
the sshd_config

ssh -v shows this at the end:

debug1: channel 0: open confirm rwindow 0 rmax 32768
Last login: Mon Mar  1 14:28:59 2004 from madhat
Linux 2.6.1.
debug1: channel 0: rcvd eof
debug1: channel 0: output open -> drain
debug1: channel 0: obuf empty
debug1: channel 0: close_write
debug1: channel 0: output drain -> closed
debug1: client_input_channel_req: channel 0 rtype exit-signal reply 0
debug1: channel 0: rcvd close
debug1: channel 0: close_read
debug1: channel 0: input open -> closed
debug1: channel 0: almost dead
debug1: channel 0: gc: notify user
debug1: channel 0: gc: user detached
debug1: channel 0: send close
debug1: channel 0: is dead
debug1: channel 0: garbage collecting
debug1: channel_free: channel 0: client-session, nchannels 1
Connection to whiterabbit closed.
debug1: Transferred: stdin 0, stdout 0, stderr 35 bytes in 0.2 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 201.3
debug1: Exit status -1


What am I missing here....?

Thanks




More information about the Discuss mailing list