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
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
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.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us