[ale] SSH session ends immediately after authentication
James P. Kinney III
jkinney at localnetsolutions.com
Thu Jan 26 14:45:23 EST 2006
That's pretty strange. It looks like the NIC is dropping the connection
or possibly there is a system error on the far end. The only traffic
happening according to the debug is data hitting stderr. You will need
access to the logs for more data.
I hate saying this but has the machine been rebooted? Does any of the
other networked services show signed of being crappy? Run some nmap
scans on port 22 (all varieties) and see if it hangs.
There is also the possibility that the hard drive had a failure that
impacted to data for the sshd binary. If ssh was reloaded, it is now
using the bad binary. It may something as small as a single bit flip.
It really looks like you will need console access for this one. The fact
that you get as far as seeing the Last: data says that ssh _is_ working.
Hmm. The next step is to start the environment for remote users. Bash
should load first but it isn't. It could be that the the sshd.conf file
was changed to "UseLogin no". That would halt the process before the
shell can start (since there is no login process to call a shell).
If you have webmin installed you can cat the sshd.conf file and make sed
edits.
On Thu, 2006-01-26 at 14:26 -0500, Jason Day wrote:
> On 1/26/06, James P. Kinney III <jkinney at localnetsolutions.com> wrote:
> A valid concern.
>
> Try logging in again with -vvv in the ssh string to get the
> maximum
> debugging info.
>
> I tried that, nothing jumps out at me though. Here's the tail end of
> the output:
>
> debug2: channel 0: request shell confirm 0
> debug2: fd 3 setting TCP_NODELAY
> debug2: callback done
> debug2: channel 0: open confirm rwindow 0 rmax 32768
> debug2: channel 0: rcvd adjust 131072
> Linux spiderman 2.2.25 #2 Mon Feb 23 11:38:23 EST 2004 i586 GNU/Linux
>
> The programs included with the Debian GNU/Linux system are free
> software;
> the exact distribution terms for each program are described in the
> individual files in /usr/share/doc/*/copyright.
>
> Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
> permitted by applicable law.
> You have mail.
>
> Last login: Thu Jan 26 14:13:25 2006 from XXXX
> debug1: client_input_channel_req: channel 0 rtype exit-signal reply 0
> debug2: channel 0: rcvd eof
> debug2: channel 0: output open -> drain
> debug2: channel 0: obuf empty
> debug2: channel 0: close_write
> debug2: channel 0: output drain -> closed
> debug2: channel 0: rcvd close
> debug2: channel 0: close_read
> debug2: channel 0: input open -> closed
> debug3: channel 0: will not send data after close
> debug2: channel 0: almost dead
> debug2: channel 0: gc: notify user
> debug2: channel 0: gc: user detached
> debug2: channel 0: send close
> debug2: channel 0: is dead
> debug2: channel 0: garbage collecting
> debug1: channel 0: free: client-session, nchannels 1
> debug3: channel 0: status: The following connections are open:
> #0 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cfd -1)
>
> debug3: channel 0: close_fds r -1 w -1 e 6 c -1
> Connection to XXXX closed.
> debug1: Transferred: stdin 0, stdout 0, stderr 35 bytes in 0.1 seconds
> debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 294.1
> debug1: Exit status -1
> debug1: compress outgoing: raw data 1173, compressed 928, factor 0.79
> debug1: compress incoming: raw data 724, compressed 472, factor 0.65
> jday:jasondgx280$
>
> --
> Jason Day jasonday at
> http://jasonday.home.att.net worldnet dot att dot
> net
>
> "Of course I'm paranoid, everyone is trying to kill me."
> -- Weyoun-6, Star Trek: Deep Space 9
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
--
James P. Kinney III \Changing the mobile computing world/
CEO & Director of Engineering \ one Linux user /
Local Net Solutions,LLC \ at a time. /
770-493-8244 \.___________________________./
http://www.localnetsolutions.com
GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
More information about the Ale
mailing list