I changed the ssh port from 22 to 2021 and it worked correctly till 3hours ago,after that when I can't connect to ssh.
ssh: connect to host 130.185.72.125 port 2021: Connection refused
so I checked iptables,I stop it from webmin,and
Chain INPUT (policy ACCEPT) target prot opt source destinationwhere is the problem?Chain FORWARD (policy ACCEPT) target prot opt source destination
Chain OUTPUT (policy ACCEPT) target prot opt source destination
The sshd process may not be running at all.
try checking with:
to see if it's running, and on which port.