View previous topic :: View next topic |
Author |
Message |
cybermans Apprentice
Joined: 04 Apr 2003 Posts: 193
|
Posted: Mon Feb 28, 2005 11:07 am Post subject: ssh freezes |
|
|
When I (and an other guy) connect to my box and try to use by example the command ls: it freezes. Nothing happens anymore.
sometimes I get to see the first line and when the directories are small enough it shows it completely but most of time nothing.
This happens also when I try to use by example cat somelogfile or nano -w someohterfile.
Anyone has a suggestion or a solution cause this drives me nuts.
openssh: SSH-2.0-OpenSSH_3.9p1 _________________ My weBlog
Linux compability list (hardware) |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Mon Feb 28, 2005 12:45 pm Post subject: |
|
|
Since SSH is a stateless protocol it can indeed lose the connection, but usually after a certain inactive time and definitely depending on the client used - smart clients send keepalive packets.
Try to increase the logging level for sshd and do a few more runs (I am assuming that you have already looked at the logs you get now.) _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
cybermans Apprentice
Joined: 04 Apr 2003 Posts: 193
|
Posted: Mon Feb 28, 2005 2:59 pm Post subject: |
|
|
dont have the luxory to go to the box right now so this is the best I can get before it hangs:
meanmachine sshd # tail current -n 13
Feb 28 15:57:02 [sshd] debug3: tty_parse_modes: 92 0
Feb 28 15:57:02 [sshd] debug3: tty_parse_modes: 93 0
Feb 28 15:57:02 [sshd] debug1: server_input_channel_req: channel 0 request shell reply 0
Feb 28 15:57:02 [sshd] debug1: session_by_channel: session 0 channel 0
Feb 28 15:57:02 [sshd] debug1: session_input_channel_req: session 0 req shell
Feb 28 15:57:02 [sshd] debug1: PAM: setting PAM_TTY to "/dev/pts/5"
Feb 28 15:57:02 [sshd] debug1: Setting controlling tty using TIOCSCTTY.
Feb 28 15:57:02 [sshd] debug3: Copy environment: REMOTEHOST=62.58.165.250
Feb 28 15:57:02 [sshd] debug3: channel 0: close_fds r -1 w -1 e -1 c -1
Feb 28 15:57:02 [sshd] debug2: fd 3 setting TCP_NODELAY
Feb 28 15:57:02 [sshd] debug2: channel 0: rfd 8 isatty
Feb 28 15:57:02 [sshd] debug2: fd 8 setting O_NONBLOCK
Feb 28 15:57:02 [sshd] debug3: fd 7 is O_NONBLOCK
meanmachine sshd # tail current -n 14
Feb 28 15:57:02 [sshd] debug3: tty_parse_modes: 91 1
if anyones with this addes knows a solution it would be extremely helpfull and apreciated _________________ My weBlog
Linux compability list (hardware) |
|
Back to top |
|
|
cybermans Apprentice
Joined: 04 Apr 2003 Posts: 193
|
Posted: Mon Feb 28, 2005 8:36 pm Post subject: |
|
|
complete log:
Code: |
Feb 28 17:09:50 [sshd] debug2: set_newkeys: mode 0
Feb 28 17:09:50 [sshd] debug2: set_newkeys: mode 1
Feb 28 17:09:50 [sshd] debug1: Entering interactive session for SSH2.
Feb 28 17:09:50 [sshd] debug2: fd 5 setting O_NONBLOCK
Feb 28 17:09:50 [sshd] debug2: fd 6 setting O_NONBLOCK
Feb 28 17:09:50 [sshd] debug1: server_init_dispatch_20
Feb 28 17:09:50 [sshd] debug1: server_input_channel_open: ctype session rchan 0 win 65536 max 16384
Feb 28 17:09:50 [sshd] debug1: input_session_request
Feb 28 17:09:50 [sshd] debug1: channel 0: new [server-session]
Feb 28 17:09:50 [sshd] debug1: session_new: init
Feb 28 17:09:50 [sshd] debug1: session_new: session 0
Feb 28 17:09:50 [sshd] debug1: session_open: channel 0
Feb 28 17:09:50 [sshd] debug1: session_open: session 0: link with channel 0
Feb 28 17:09:50 [sshd] debug1: server_input_channel_open: confirm session
Feb 28 17:09:50 [sshd] debug1: server_input_channel_req: channel 0 request pty-req reply 0
Feb 28 17:09:50 [sshd] debug1: session_by_channel: session 0 channel 0
Feb 28 17:09:50 [sshd] debug1: session_input_channel_req: session 0 req pty-req
Feb 28 17:09:50 [sshd] debug1: Allocating pty.
Feb 28 17:09:50 [sshd] debug3: mm_request_send entering: type 25
Feb 28 17:09:50 [sshd] debug3: monitor_read: checking request 25
Feb 28 17:09:50 [sshd] debug3: mm_answer_pty entering
Feb 28 17:09:50 [sshd] debug1: session_new: init
Feb 28 17:09:50 [sshd] debug1: session_new: session 0
Feb 28 17:09:50 [sshd] debug3: mm_request_send entering: type 26
Feb 28 17:09:50 [sshd] debug3: mm_answer_pty: tty /dev/pts/5 ptyfd 4
Feb 28 17:09:50 [sshd] debug3: mm_request_receive entering
Feb 28 17:09:50 [sshd] debug3: mm_pty_allocate: waiting for MONITOR_ANS_PTY
Feb 28 17:09:50 [sshd] debug3: mm_request_receive_expect entering: type 26
Feb 28 17:09:50 [sshd] debug3: mm_request_receive entering
Feb 28 17:09:50 [sshd] debug1: session_pty_req: session 0 alloc /dev/pts/5
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: SSH2 n_bytes 256
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: ospeed 38400
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: ispeed 38400
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 1 3
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 2 28
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 3 127
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 4 21
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 5 4
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 6 255
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 7 255
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 8 17
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 9 19
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 10 26
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 12 18
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 13 23
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 14 22
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 18 15
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 30 0
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 31 0
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 32 0
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 33 0
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 34 0
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 35 0
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 36 1
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 37 0
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 38 1
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 39 1
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 40 0
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 41 1
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 50 1
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 51 1
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 52 0
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 53 1
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 54 1
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 55 1
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 56 0
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 57 0
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 58 0
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 59 1
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 60 1
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 61 1
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 62 0
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 70 1
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 71 0
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 72 1
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 73 0
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 74 0
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 75 0
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 90 1
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 91 1
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 92 0
Feb 28 17:09:50 [sshd] debug3: tty_parse_modes: 93 0
Feb 28 17:09:50 [sshd] debug1: server_input_channel_req: channel 0 request shell reply 0
Feb 28 17:09:50 [sshd] debug1: session_by_channel: session 0 channel 0
Feb 28 17:09:50 [sshd] debug1: session_input_channel_req: session 0 req shell
Feb 28 17:09:50 [sshd] debug1: PAM: setting PAM_TTY to "/dev/pts/5"
Feb 28 17:09:50 [sshd] debug1: Setting controlling tty using TIOCSCTTY.
Feb 28 17:09:50 [sshd] debug3: Copy environment: REMOTEHOST=62.58.165.250
Feb 28 17:09:50 [sshd] debug3: channel 0: close_fds r -1 w -1 e -1 c -1
Feb 28 17:09:50 [sshd] debug2: fd 3 setting TCP_NODELAY
Feb 28 17:09:50 [sshd] debug2: channel 0: rfd 8 isatty
Feb 28 17:09:50 [sshd] debug2: fd 8 setting O_NONBLOCK
Feb 28 17:09:50 [sshd] debug3: fd 7 is O_NONBLOCK
Feb 28 17:25:59 [sshd] Read error from remote host ::ffff:62.58.165.250: Connection timed out
Feb 28 17:25:59 [sshd] debug1: do_cleanup
Feb 28 17:25:59 [sshd] debug1: PAM: cleanup
Feb 28 17:25:59 [sshd] PAM pam_putenv: delete non-existent entry; DISPLAY
Feb 28 17:25:59 [sshd] PAM pam_putenv: delete non-existent entry; XAUTHORITY
Feb 28 17:25:59 [sshd] debug3: PAM: sshpam_thread_cleanup entering
Feb 28 17:25:59 [sshd] debug1: do_cleanup
Feb 28 17:25:59 [sshd] debug1: PAM: cleanup
Feb 28 17:25:59 [sshd] debug3: PAM: sshpam_thread_cleanup entering
Feb 28 17:25:59 [sshd] debug1: session_pty_cleanup: session 0 release /dev/pts/5
|
I dont see something wrong (but I am not an ssh expert) _________________ My weBlog
Linux compability list (hardware) |
|
Back to top |
|
|
j-m Retired Dev
Joined: 31 Oct 2004 Posts: 975
|
Posted: Mon Feb 28, 2005 9:20 pm Post subject: |
|
|
Hmm, this is definitely wrong - some strange mix of IPv4 and IPv6 address...
Code: |
Feb 28 17:25:59 [sshd] Read error from remote host ::ffff:62.58.165.250: Connection timed out
|
|
|
Back to top |
|
|
|