1824337 Members
3801 Online
109669 Solutions
New Discussion юеВ

ssh connection refused

 
SOLVED
Go to solution
C.W. Yeung
Occasional Contributor

ssh connection refused

I have installed openssh 3.5p1. After starting the sshd, I tried to connect to the server from client. However, when I finished entering password, the connection was closed.
This is the error from syslog:
1. Accepted password for test from xxx.xxx.xxx.xxx port 50916 ssh2
2. fatal: mm_send_fd: sendmsg(3): Bad file number
3. fatal: mm_receive_fd: recvmsg: expected received 1 got 0

Any help would be appreciated. Thanks in advance.
3 REPLIES 3
Christian Gebhardt
Honored Contributor
Solution

Re: ssh connection refused

I think it's a problem with the new feature "privilege separation"

Try to write input
UsePrivilegeSeparation no
in your /etc/sshd_config file and restart the daemon

Chris
Christian Gebhardt
Honored Contributor

Re: ssh connection refused

Infos to this new feature:

Changes since OpenSSH 3.2.3:
============================

Security Changes:
=================

- improved support for privilege separation:

privilege separation is now enabled by default

See UsePrivilegeSeparation in sshd_config(5)
and http://www.citi.umich.edu/u/provos/ssh/privsep.html for more
information.

Chris
C.W. Yeung
Occasional Contributor

Re: ssh connection refused

Thanks chris. It is the
privilege separation that caused the problem.