The -p option for sshd(8) seems to be ignored in OpenSSH_9.2

Darren Tucker dtucker at dtucker.net
Mon Feb 6 08:44:23 AEDT 2023


On Mon, 6 Feb 2023 at 02:23, Lars Noodén <lars.nooden at gmx.com> wrote:
> debug1: Bind to port 22 on 10.100.100.1.
> Bind to port 22 on 10.100.100.1 failed: Address already in use.

This line implies that you have at least one ListenAddress directive
in your sshd_config and -p doesn't override those:

     -p port
             Specifies the port on which the server listens for connections
             (default 22).  Multiple port options are permitted.  Ports
             specified in the configuration file with the Port option are
             ignored when a command-line port is specified.  *Ports specified
             using the ListenAddress option override command-line ports.*

What ListenAddress and Port directives do you have in your sshd_config?

-- 
Darren Tucker (dtucker at dtucker.net)
GPG key 11EAA6FA / A86E 3E07 5B19 5880 E860  37F4 9357 ECEF 11EA A6FA (new)
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.


More information about the openssh-unix-dev mailing list