Monday, July 2, 2018

centos - ssh connection refused with out iptables rulles

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 destination


Chain FORWARD (policy ACCEPT)
target prot opt source destination



Chain OUTPUT (policy ACCEPT)
target prot opt source destination


where is the problem?

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...