Firewall will block all incoming connections by default. check your firewall settings or use private network to SSL. error message means the server to which you are connecting does not reply to SSH connection attempts on port 22.
#ssh : connect to host port 22: connection time out #fix ssh: connect to host port 22: Connection time out
Need to Firewall Disable
First Checking Your Firewall Status :
Go to Control Panel +Windows Defender Firewall+Change Notification Setting
For Ubuntu :
sudo ufw status
sudo ufw disable
Above not working follow this
#how to fix ssh: connect to host port 22 : connection refused
1.First Checking have Install SSH
2.Not Install SSH than Installed it's
3.SSH Restart
4.SSH Enable.
5.Checking SSH Status .
6. Must Be Active (Status Running)
error: Permission denied
Change Your User go to Root User:-
$sudo -i
Install SSH :-
sudo apt-get update
sudo apt-get install ssh
systemctl restart ssh.service
systemctl enable ssh.service
systemctl status ssh.service
#silentsolution
25 дек 2020