I got a strange "connection refused"

qin an anqin.qin at gmail.com
Thu Mar 20 16:04:52 EST 2008


If I run with -d, all is OK. However, when I run sshd in
daemon, it clashed. I don't know how to collect the debug
information in this case.


On Thu, Mar 20, 2008 at 5:08 AM, Damien Miller <djm at mindrot.org> wrote:
>
> On Wed, 19 Mar 2008, qin an wrote:
>
>  > Hi everybody,
>  >
>  > I got a strange error message when I used the openssh.
>  > When I run it with debug mode, like this:
>  >
>  > #  /usr/local/sbin/sshd -d
>  >
>  > I can open the session via ssh command. However,
>  > when I run with daemon mode, the ssh client was
>  > closed down and threw out the following message:
>  >
>  > debug1: dispatch_run:dispatch done
>  > debug1: Authentication succeeded (keyboard-interactive).
>  > debug1: channel 0: new [client-session]
>  > debug2: channel 0: send open
>  > debug1: Entering interactive session.
>  > debug1: channel 0: free: client-session, nchannels 1
>  > Read from remote host localhost: Connection reset by peer
>  > Connection to localhost closed.
>  > debug1: Transferred: stdin 0, stdout 0, stderr 92 bytes in 0.0 seconds
>  > debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 18444.3
>  > debug1: Exit status -1
>
>  What does the server say when it disconnects the client?
>
>  -d
>


More information about the openssh-unix-dev mailing list