Authentication succeeded but Connection closed



Hi!

The current situation is that one can do ssh, scp and so on from my small machine (ARM9/uClibc) to the big machine (i686/Edge) but not in the opposite direction.

Small -> Big : Fine!
Big -> Small : No way!

In fact authentication succeeds and the environmental things are getting exchanged but than the connection gets closed by the client. I run both sides in debug3 mode and got quite a number of messages. Don't worry, I chopped them down a little.

bigClient -> smallHost

bigClient says:
...

SSH_CONNECTION=10.0.0.1 32816 10.0.0.59 22
SSH_TTY=/dev/pts/0
TERM=xterm
debug3: channel 0: close_fds r -1 w -1 e -1 c -1
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
debug1: client_input_channel_req: channel 0 rtype exit-signal reply 0
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 7 c -1
debug1: fd 1 clearing O_NONBLOCK
debug3: fd 2 is not O_NONBLOCK
Connection to 10.0.0.59 closed.
debug1: Transferred: stdin 0, stdout 0, stderr 33 bytes in 0.1 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 282.7
debug1: Exit status -1


smallHost says:
...

debug2: channel 0: rfd 8 isatty
debug2: fd 8 setting O_NONBLOCK
debug3: fd 7 is O_NONBLOCK
debug3: mm_answer_pty: tty /dev/pts/0 ptyfd 4
debug3: mm_request_receive entering
debug1: Setting controlling tty using TIOCSCTTY.
debug2: channel 0: read<=0 rfd 8 len -1
debug2: channel 0: read failed
debug2: channel 0: close_read
debug2: channel 0: input open -> drain
debug2: channel 0: ibuf empty
debug2: channel 0: send eof
debug2: channel 0: input drain -> closed
debug1: Received SIGCHLD.
debug1: session_by_pid: pid 856
debug1: session_exit_message: session 0 channel 0 pid 856
debug2: channel 0: request exit-signal confirm 0
debug1: session_exit_message: release channel 0
debug2: channel 0: write failed
debug2: channel 0: close_write
debug2: channel 0: output open -> closed
debug3: mm_request_send entering: type 27
debug3: monitor_read: checking request 27
debug3: mm_answer_pty_cleanup entering
debug1: session_by_tty: session 0 tty /dev/pts/0
debug3: mm_session_close: session 0 pid 854
debug3: mm_session_close: tty /dev/pts/0 ptyfd 4
debug1: session_pty_cleanup: session 0 release /dev/pts/0
debug3: mm_request_receive entering
debug2: channel 0: send close
debug3: channel 0: will not send data after close
debug2: notify_done: reading
debug3: channel 0: will not send data after close
debug2: channel 0: rcvd close
debug3: channel 0: will not send data after close
debug2: channel 0: is dead
debug2: channel 0: gc: notify user
debug1: session_by_channel: session 0 channel 0
debug1: session_close_by_channel: channel 0 child 0
debug1: session_close: session 0 pid 0
debug2: channel 0: gc: user detached
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: server-session, nchannels 1
debug3: channel 0: status: The following connections are open:
#0 server-session (t4 r0 i3/0 o3/0 fd -1/-1 cfd -1)

debug3: channel 0: close_fds r -1 w -1 e -1 c -1
Connection closed by 10.0.0.1
debug1: do_cleanup
Closing connection to 10.0.0.1
debug3: mm_request_send entering: type 58
debug3: monitor_read: checking request 58
debug3: mm_answer_term: tearing down sessions

--------------------------------------------------------

Unfortunately, this output leaves my quite deserted. %-(
Any (great) idea?

Regards
akuehn



Relevant Pages

  • Another variant of "ssh" working interactively, but "ssh cmd" and "scp" failing
    ... debug1: Connecting to FOO port 22. ... debug3: key_read: missing keytype ... debug2: fd 4 setting O_NONBLOCK ... debug2: channel 0: request exec confirm 0 ...
    (comp.security.ssh)
  • openssh3.7p1 chroot patch not work on solaris 7
    ... debug1: monitor_child_preauth: test has been authenticated by privileged process ... debug3: mm_get_keystate: Waiting for new keys ... debug2: mac_init: found hmac-sha1 ... debug1: channel 0: new ...
    (comp.unix.solaris)
  • openssh3.7p1 chroot patch not work on solaris 7
    ... debug1: monitor_child_preauth: test has been authenticated by privileged process ... debug3: mm_get_keystate: Waiting for new keys ... debug2: mac_init: found hmac-sha1 ... debug1: channel 0: new ...
    (comp.security.ssh)
  • openssh3.7p1 chroot patch not work on solaris 7
    ... debug1: monitor_child_preauth: test has been authenticated by privileged process ... debug3: mm_get_keystate: Waiting for new keys ... debug2: mac_init: found hmac-sha1 ... debug1: channel 0: new ...
    (comp.security.ssh)
  • Re: ssh xterm -> HPUX fails
    ... debug1: read PEM private key done: type RSA ... debug3: preauth child monitor started ... debug2: monitor_read: 0 used once, ... debug2: channel 0: sent ext data 106 ...
    (comp.security.ssh)