0

While running the SSH demon, only ssh for tcp is listening, tcp6 is not getting listened, even though sshd_config file contains both Ipv4 and Ipv6.

Due to this, ssh demon is not replying for ipv6 ssh.

netstat -l
tcp        0      0 *:ssh                   *:*                     LISTEN

netstat -nat
tcp        0      0 :::22                   :::*                    LISTEN

sshd_config file includes the follow,

ListenAddress 0.0.0.0
ListenAddress ::

I have used the same sshd_config file in another linux desktop, there its listening for both ipv4 and ipv6.

  • Hi philip, I have addressed the comment. Thank you for your response – user351712 May 7 '19 at 9:13
0

Uncomment AddressFamily any in sshd confiuration file

|improve this answer|||||
  • Hi Angel, I have tried the same, its not working. AddressFamily any ListenAddress 0.0.0.0 ListenAddress :: – user351712 May 7 '19 at 10:02
  • check sudo sshd -T | grep -i address – redseven May 7 '19 at 10:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.