| View previous topic :: View next topic |
| Author |
Message |
adamk
Joined: 15 Dec 2007 Posts: 54
|
Posted: Thu Aug 20, 2009 3:19 am Post subject: 0.6.7-20090701 sshd drops connections |
|
|
I'm starting sshd up -4 -d as arguments and trying to ssh in as my normal user. I have exchanged keys, but the client machine errors out with:
[ adamk@sorrow - ~/Documents ]: ssh 192.168.5.95
ssh_exchange_identification: Connection closed by remote host
The server shows:
debug1: sshd version OpenSSH_4.7p1
debug1: read PEM private key done: type RSA
debug1: private host key: #0 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #1 type 2 DSA
debug1: rexec_argv[0]='/resources/indexes/sbin/sshd'
debug1: rexec_argv[1]='-4'
debug1: rexec_argv[2]='-d'
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
reexec socketpair: Address family not supported by protocol |
|
| Back to top |
|
 |
Vanders The Knights of Syllable
Joined: 14 Sep 2007 Posts: 830
|
Posted: Thu Aug 20, 2009 5:02 am Post subject: |
|
|
| The current implementation of socketpair() only supports SOCK_STREAM (I.e. TCP) sockets. It's likely that sshd is trying to use a different socket type. |
|
| Back to top |
|
 |
Kaj The Knights of Syllable
Joined: 14 Sep 2007 Posts: 1466 Location: Friesland
|
Posted: Mon Oct 12, 2009 7:22 am Post subject: |
|
|
Michael found that you can prevent socketpair() calls with an undocumented -r option and sshd then works:
[url=http://forum.syllable.org/viewtopic.php?t=1362]http://forum.syllable.org/viewtopic.php?t=1362[/url]
I'll add these parameters to the sshd start script. |
|
| Back to top |
|
 |
Kaj The Knights of Syllable
Joined: 14 Sep 2007 Posts: 1466 Location: Friesland
|
Posted: Thu Jan 14, 2010 2:41 pm Post subject: |
|
|
| Works on current dev build. |
|
| Back to top |
|
 |
|