Link to home
Start Free TrialLog in
Avatar of Andre J
Andre JFlag for United States of America

asked on

SSh issue

I recently cleaned my server off, and installed a fresh copy of centos 7 linuxs on it. My issue is i have ssh running, but i am only able to access it with my private ips. I am not clear on how to set it up to use my static ip and domain names? Please help? The domains are not setup yet, since i just installed centos 7 again. i need help with the basic understand of setting my ssh up to allow remote access in another city.  when i try to use my static ip to access it i get this error "port 22: No route to host ". My firewall is complete down, so there or not blocks, so it has to be a configuration issue. i Just dont know what to do to fix it.
ASKER CERTIFIED SOLUTION
Avatar of Scott Silva
Scott Silva
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
First test... Ping Google + if that works, issue this command...

curl -I -L google.com

Open in new window


If both work, then likely something in iptables is interferring with port 22 traffic.

Try flushing all rules + retry your ssh command.

iptables -F

Open in new window


Still having problems, try this command to see exactly where your packets drop.

mtr google.com

Open in new window

Avatar of Rahul Shende
Rahul Shende

check your /etc/resolv.conf