IBM Support

SSHD Bind to IPv6 Error Messages

General Page

You are in: IBM i OpenSSH & OpenSSL - Navigation > SSHD Bind to IPv6 Error Messages.

At startup time for the SSHD daemon job, it attempts to bind to both the IPv4 and IPv6 loopback addresses.  In the case where a customer isn't starting the IPv6 protocol, the bind fails for IPV6 and outputs the following two error messages:

      
sshd[574904]: error: setsockopt IPV6_V6ONLY: Protocol driver not attached.
sshd[574904]: error: Bind to port 22 on :: failed: The socket name is already in use..
     
The customer can do either of the following options if they want to suppress the messages:
    
 1) Start the IPV6 protocol using parameter STRIP6(*YES) on the STRTCP command

-or-

2) Uncomment "ListenAddress 0.0.0.0" in there sshd_config file and restart the sshd daemon job.  This seems to tell the SSHD daemon job at startup time to only bind to the IPV4 address.

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Component":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

Modified date:
05 February 2020

UID

ibm11136578