Avatar of Andre J
Andre J
Flag 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.
Linux NetworkingApache Web Server

Avatar of undefined
Last Comment
Rahul Shende

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Scott Silva

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
David Favor

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 Shende

check your /etc/resolv.conf
Your help has saved me hundreds of hours of internet surfing.
fblack61