Finally I found what was the issue. in the /etc/ssh/sshd_config after commenting the below lines I am able to ssh to the vm. # grep -i LISTEN /etc/ssh/sshd_config #ListenAddress 127.0.0.1 #ListenAddress :: # check your sshd config.
Finally I found what was the issue. in the /etc/ssh/ sshd_config after commenting the below lines I am able to ssh to the vm. sshd_config
# grep -i LISTEN /etc/ssh/
#ListenAddress 127.0.0.1
#ListenAddress ::
#
check your sshd config.