Hi all,

I'm having trouble getting SSHD to work in a UML guest. I've compiled from kernel 2.6.12-686-smp under Ubuntu using the skas-v9-pre7 patch for the host and bs11 for the guest. I've got networking setup using a bridge on the host and tuntap. I can get a netcat connection from my workstation into the uml-guest, and I can ssh from the uml-guest to other servers. But when I try to ssh /into/ the uml-guest I get this (with verbosity):

OpenSSH_3.8.1p1, OpenSSL 0.9.7g 11 Apr 2005
debug1: Reading configuration data /etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to 10.1.200.150 [10.1.200.150] port 22.
debug1: Connection established.
debug1: identity file /Users/ian/.ssh/identity type -1
debug1: identity file /Users/ian/.ssh/id_rsa type -1
debug1: identity file /Users/ian/.ssh/id_dsa type -1
ssh_exchange_identification: Connection closed by remote host

Which looks exactly like normative output, except where ssh into the uml-guest fails with "Connection closed", a successful session says

debug1: Remote protocol version 2.0, remote software version OpenSSH_4.1p1 Debian-7ubuntu4

So I killed SSHD on the uml-guest, and restarted it with -ddd, which is when I see this when trying to connect:

Server listening on 10.1.200.150 port 22.
debug3: fd 4 is not O_NONBLOCK
reexec socketpair: Address family not supported by protocol

It gives that same error even if I start sshd with a -4 to force IPv4. An strace of sshd show this error on connection attempt:

socketpair(PF_FILE, SOCK_STREAM, 0, 0xbfb65ccc) = -1 EAFNOSUPPORT (Address family not supported by protocol)

I tried recompiling the uml-guest giving special attention to configuration options under Networking->Networking Options, but the only suspect thing in there that I saw was enabling Bridging support, which didn't change behavior at all.

I also checked to make sure /dev/random and /dev/urandom are working, which they are, and specified in sshd_config the IP address for it to listen to, rather than all. Finally, I tried regenerating the RSA keys. None of this changed behavior.

Sorry for the lengthy report, tried to keep it terse. Any advice would be greatly appreciated.

Thanks much,
Ian

P.S. I tried renaming /lib/tls to /lib/tls.disabled and restarting the uml-guest, but that also didn't change behavior.


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to