Answers for "ssh: connect to host 192.168.0.163 port 22: connection refused"

CSS
0

ssh: connect to host 165.22.132.219 port 22: Connection refused

# First Check whats your ssh Port # in Server.

$ grep -i port /etc/ssh/sshd_config
#Port 22
#GatewayPorts no

ssh root@ipaddress -p port-Number 
ssh [email protected] -p 2020
Posted by: Guest on May-21-2021
0

ssh: connect to host 192.168.178.45 port 22: Connection refused lost connection

Your ISP may block connections to port 22 (nothing you or your router can do about it). Just set SSHd to run on a different port, e.g. 2222.

In /etc/ssh/sshd_config, change Port 22 to Port 2222 and then sudo service ssh restart. Port forward 2222 (or whatever), and try again.
Posted by: Guest on March-27-2021

Code answers related to "ssh: connect to host 192.168.0.163 port 22: connection refused"

Browse Popular Code Answers by Language