Re: SSH Connection Lost / Refused
Originally Posted by
maverickaddicted
First check if you are able to ping the server or not from your local machine.
Code:
ping hostname or IP
If that works, try following things on server-
First check if the ssh is running on the server or not -
Code:
sudo service ssh status
Also check the default ssh port of the server if it is in listening or not
You can create following rule on iptables of server to allow the connections on port 22 (Default SSH Port)
Code:
iptables -A INPUT -i eth0 -p tcp --dport 22 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -o eth0 -p tcp --sport 22 -m state --state ESTABLISHED -j ACCEPT
eth0 is network interface device, change it accordingly if you have something else like eth1, eth2....
Uh.... The service of opensshd is called sshd not ssh.
"Everything that has a beginning, has an end." --an unexpectedly wise wallpaper
Bookmarks