Syllable Forum Index Syllable
Syllable Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

0.6.7-20090701 sshd drops connections

 
Post new topic   Reply to topic    Syllable Forum Index -> Bugs - Fixed
View previous topic :: View next topic  
Author Message
adamk



Joined: 15 Dec 2007
Posts: 54

PostPosted: Thu Aug 20, 2009 3:19 am    Post subject: 0.6.7-20090701 sshd drops connections Reply with quote

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:

[ [email protected] - ~/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
View user's profile Send private message
Vanders
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 849

PostPosted: Thu Aug 20, 2009 5:02 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 2207
Location: Friesland

PostPosted: Mon Oct 12, 2009 7:22 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 2207
Location: Friesland

PostPosted: Thu Jan 14, 2010 2:41 pm    Post subject: Reply with quote

Works on current dev build.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Syllable Forum Index -> Bugs - Fixed All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group