What happened to SSH?

Ernest Byaruhanga e.byaru at gmail.com
Tue Nov 14 16:24:11 UTC 2006


Ashley M. Kirchner wrote the following on 11/14/2006 05:28 PM:
> 
>    Something happened after the last openssh update.  Now every time ssh
> is (re)started, I get this message in my syslog:
> 
> Nov 14 08:16:57 lansky sshd[1760]: Server listening on :: port 22.

that's a v6 IP address. you may disable v6 by using the following
directive in sshd_config

   AddressFamily

             Specifies which address family should be used by sshd.
             Valid arguments are “any”, “inet” (use IPv4 only) or
             “inet6” (use IPv6 only).  The default is “any”.

> Nov 14 08:16:57 lansky sshd[1760]: error: Bind to port 22 on 0.0.0.0
> failed: Address already in use.

As soneone said earlier, you can also bind it to an interface with the
"ListenAddress" directive:

     ListenAddress

             Specifies the local addresses sshd should listen on. The
             following forms may be used:

                   ListenAddress host|IPv4_addr|IPv6_addr
                   ListenAddress host|IPv4_addr:port
                   ListenAddress [host|IPv6_addr]:port

hth
eb




More information about the users mailing list