Istvan Viczian
2004-Jan-22 20:21 UTC
sshd start fails with:"fatal: Cannot bind any address." but the process return value 0 !
Hi, I use openssh version: OpenSSH_3.7.1p2, SSH protocols 1.5/2.0, OpenSSL 0.9.6l 04 Nov 2003 (complied by myself) on redhat7.2 ( kernel 2.4.20-19.7smp ) It seems that sshd returns vith wrong returns value, if some other process (e.g. another sshd) already reserved the given IP address and port. I setup two ssh daemon almost with the same settings in order to listen on two different IP address, but at the first one I forgot to specify the IP address on which it have to listen to (ListenAddress XXXXX). That is why it started on both of the available IP addreses (10.0.0.1, 10.0.0.2) : [root at mach]#sshd -f /etc/ssh/sshd_config; echo $? [root at mach]#0 And the log looks like: Jan 22 21:13:15 mach sshd[1644]: debug1: Bind to port 22 on 0.0.0.0. Jan 22 21:13:15 mach sshd[1644]: Server listening on 0.0.0.0 port 22. Then I started the second too: [root at mach]#sshd -f /etc/ssh2/sshd_config; echo $? [root at mach]#0 And the log: Jan 22 21:15:06 mach sshd[1817]: debug1: Bind to port 22 on 10.0.0.2. Jan 22 21:15:06 mach sshd[1817]: error: Bind to port 22 on 10.0.0.2 failed: Address already in use. Jan 22 21:15:06 mach sshd[1817]: fatal: Cannot bind any address. Obviously only the first instance was runing. Regards, Istvan Viczian
Maybe Matching Threads
- "PAM rejected by account configuration" and "fatal: monitor_read: unsupported request: 24" problem at secong sshd instance
- OpenSSH Hostbased authentication HOWTO
- Imap sent folder sometimes dosen't get updated in dovecot-1.1-rc3(+some current hg patches)
- Sharing Printer
- [Bug 165] New: Problem with SSH1 Keys on RedHat7.2