Philippe Lelédy
2010-Mar-09 09:44 UTC
sshd version OpenSSH_5.4p1 fails on OpenBSD 4.2 GENERIC macppc
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 debug1: do_cleanup debug1: session_pty_cleanup: session 0 release /dev/ttyp2 I acknowledge that OpenSSH_5.4p1 is for every thing but OpenBSD and that I'd better upgrade to last OpenBSD version. Ph.L.
Damien Miller
2010-Mar-10 10:58 UTC
sshd version OpenSSH_5.4p1 fails on OpenBSD 4.2 GENERIC macppc
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 failedOlder 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
Reasonably Related Threads
- AuthorizedKeysFile with default value prevents Public/Private key authentication
- openbsd macppc
- sftp authentication failure only as cronjob
- [Bug 1736] New: OpenSSH doesn't seem to work with my MuscleCard PKCS#11 library
- OpenSSH_4.3p2 fails to create a pty session