sshd version OpenSSH_5.4p1 fails on OpenBSD 4.2 GENERIC macppc

Damien Miller djm at mindrot.org
Wed Mar 10 21:58:10 EST 2010


On Tue, 9 Mar 2010, Philippe Lel?dy wrote:

> Because OpenSSH_5.4 doesn't build on my OpenBSD 4.2 box, I tried OpenSSH_5.4p1
> which builds and installs fine.
> 
> After starting server with sudo /opt/sbin/sshd -p 2222 -d,  my ssh client can
> connect, but the session is closed by server as soon as it is started:
> 
> [...]
> User child is on pid 10318
> debug1: Entering interactive session for SSH2.
> debug1: server_init_dispatch_20
> debug1: server_input_channel_open: ctype session rchan 0 win 1048576 max 16384
> debug1: input_session_request
> debug1: channel 0: new [server-session]
> debug1: session_new: session 0
> debug1: session_open: channel 0
> debug1: session_open: session 0: link with channel 0
> debug1: server_input_channel_open: confirm session
> debug1: server_input_global_request: rtype no-more-sessions at openssh.com
> want_reply 0
> debug1: server_input_channel_req: channel 0 request pty-req reply 1
> debug1: session_by_channel: session 0 channel 0
> debug1: session_input_channel_req: session 0 req pty-req
> debug1: Allocating pty.
> debug1: session_new: session 0
> mm_send_fd: sendmsg(7): Invalid argument
> mm_answer_pty: send fds failed

Older OpenBSD have a kernel bug in fd passing, you might try this patch
to work around it:

ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openbsd43_4.9.patch

-d


More information about the openssh-unix-dev mailing list