I have a PC running Kali Linux and a laptop running Ubuntu on VMWare. They are both on the same network. When I am trying to connect from Ubuntu to Kali via SSH I get the error port 22 connection refused.

However I can connect from the Kali to Ubuntu without any problem.

I tried already tried to allow port 22 connection on firewall and also accept all connection INPUT and OUTPUT in iptables but it didn’t work.

Does anyone know how to solve this?


I found the error. sshdservice was not running on the Kali machine. I just started the service and it was working!

| improve this answer | |

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.