We help IT Professionals succeed at work.

SSh issue

127 Views
Last Modified: 2018-08-21
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.
Comment
Watch Question

Network Administrator
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
David FavorFractional CTO
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
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

Rahul ShendeJr. Linux System Administrator
CERTIFIED EXPERT

Commented:
check your /etc/resolv.conf