SSH Connect Error: “ssh: connect to host port 22: Connection refused”

Port 22 is not open, which means the SSH service is not open (I don’t know when it is closed)

First, restart SSH,/etc/init.d/ssh restart

Then, check whether it is opened successfully. Lsof – I TCP: 22   Or netstat – Tulp | grep SSH

Similar Posts: