sshd -p option vs ListenAddress
chris at ex-parrot.com
Wed Dec 14 05:49:33 EST 2005
If all ListenAddress lines in the sshd_config file specify
a port, then the -p option to sshd is silently ignored:
# cat test_sshd_config2
# `pwd`/sshd -D -d -p 4411 -f test_sshd_config2
debug1: sshd version OpenSSH_4.2p1
debug1: private host key: #0 type 0 RSA1
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
debug1: Bind to port 2222 on 0.0.0.0.
debug1: Bind to port 22 on 0.0.0.0.
Bind to port 22 on 0.0.0.0 failed: Address already in use.
Cannot bind any address.
This seems... counterintuitive, at least. Is it the
``Around 1,500 spectators turned up,... lured by the novel combination of
death, an elephant and electricity. Mercifully, Topsy died extremely quickly,
and without a trumpet, which may have had something to do with the carrots
laced with cyanide that she had been fed.'' (from The Economist)
More information about the openssh-unix-dev