The -p option for sshd(8) seems to be ignored in OpenSSH_9.2
Lars Noodén
lars.nooden at gmx.com
Mon Feb 6 02:14:11 AEDT 2023
Greetings.
It used to be possible to spin up additional instances of sshd(8) next
to an established process with options to override the configuration
file. However, in the most recent version of sshd(8) in the OpenBSD
snapshot for amd64 does not do that any more as it seems to not accept a
new port assignment and ends up conflicting with the already running
service:
# /usr/sbin/sshd -p 2201 -d
debug1: sshd version OpenSSH_9.2, LibreSSL 3.7.1
debug1: private host key #0: ssh-rsa SHA256:7tXl2Q...
debug1: private host key #1: ecdsa-sha2-nistp256 SHA256:t9pNvmtPBL1aF...
debug1: private host key #2: ssh-ed25519 SHA256:T0IGk...
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-p'
debug1: rexec_argv[2]='2201'
debug1: rexec_argv[3]='-d'
debug1: Bind to port 22 on 10.100.100.1.
Bind to port 22 on 10.100.100.1 failed: Address already in use.
debug1: Bind to port 2223 on 0.0.0.0.
Bind to port 2223 on 0.0.0.0 failed: Address already in use.
Cannot bind any address.
# /usr/sbin/sshd -V
OpenSSH_9.2, LibreSSL 3.7.1
Regards,
Lars
More information about the openssh-unix-dev
mailing list