sshd sometimes fail to start, when configured with specific listen address

Solution Verified - Updated -

Issue

  • sshd.service failing, when configured to listen on specific ip-address
  • sshd.service fail with error error: Bind to port 22 on 192.168.0.1 failed: Cannot assign requested address.

Environment

  • Red Hat Enterprise Linux (RHEL) 8, 7
  • specific listen address in sshd_config

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In