LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-04-2011, 02:20 PM   #1
abaksh1
LQ Newbie
 
Registered: Feb 2010
Location: Baton Rouge, LA
Distribution: Fedora
Posts: 6

Rep: Reputation: 0
Question Setting Up a ssh server of Fedora 14


Hello all,

I am trying to set up a ssh server on my mom's box that is running Fedora 14. I have set the server up and when I am logged onto the box locally, it lets me log in. But when I try to shell in from my apartment some miles away, I get the following error:

ssh: connect to host 71.176.165.28 port 22: No route to host

However, when I try to ping it, the machine is reachable, and traceroute likewise gives me a clear route to the remote machine. Obviously I have something misconfigured here, but what?

Can anyone help? Thanks in advance.
 
Old 05-04-2011, 02:27 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,496

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
Firewall, portforwarding at the router?
ISP is blocking port 22?

Kind regards

Last edited by repo; 05-04-2011 at 02:28 PM.
 
Old 05-04-2011, 08:42 PM   #3
thund3rstruck
Member
 
Registered: Nov 2005
Location: East Coast, USA
Distribution: Fedora 18, Slackware64 13.37, Windows 7/8
Posts: 346

Rep: Reputation: 38
Quote:
Originally Posted by abaksh1 View Post
ssh: connect to host 71.176.165.28 port 22: No route to host

However, when I try to ping it, the machine is reachable, and traceroute likewise gives me a clear route to the remote machine.
What is running @ 71.176.165.28? Is your mom's computer connected directly to the internet or behind a router? If she's on a router then you have to configure PortForwarding at the router to route traffic inbound from 22 to the machine. If she's connected directly to the Internet then the ISP might be blocking port 22 and you should be able to configure an alternate port.

Refer here to see if 22 is being blocked: http://www.canyouseeme.org/
 
Old 05-05-2011, 02:34 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,496

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
Make sure the ip is correct.
You can use nmap to see which ports are open and responding.
Code:
 nmap -Pn 71.176.165.28
Kind regards
 
Old 05-05-2011, 06:21 AM   #5
abaksh1
LQ Newbie
 
Registered: Feb 2010
Location: Baton Rouge, LA
Distribution: Fedora
Posts: 6

Original Poster
Rep: Reputation: 0
When I run nmap, I get the following output:

Starting Nmap 5.21 ( http://nmap.org ) at 2011-05-05 06:18 CDT
Nmap scan report for ip71.176.165.28.br.br.cox.net (71.176.165.28)
Host is up (0.019s latency).
All 1000 scanned ports on ip71.176.165.28.br.br.cox.net (71.176.165.28) are filtered

Nmap done: 1 IP address (1 host up) scanned in 5.14 seconds

What does all ports are filtered mean? I don't think we are behind a router. I have set up a server before using Ubuntu some time ago, and recently switched after the Unity business, so I think it must be something that I am doing wrong, you know? Thanks again for the input.
 
Old 05-05-2011, 06:30 AM   #6
abaksh1
LQ Newbie
 
Registered: Feb 2010
Location: Baton Rouge, LA
Distribution: Fedora
Posts: 6

Original Poster
Rep: Reputation: 0
When I did another scan with: nmap -A -T4 71.176.165.28, I got:

Starting Nmap 5.21 ( http://nmap.org ) at 2011-05-05 06:28 CDT
Note: Host seems down. If it is really up, but blocking our ping probes, try -PN
Nmap done: 1 IP address (0 hosts up) scanned in 2.03 seconds

It looks like it might be a firewall issue. I am not that familiar with Fedora's default firewall settings. I thought I had allowed connections to port 22, but evidently I got something wrong. Any ideas how I can check?
 
Old 05-05-2011, 09:30 AM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,496

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
Code:
ipables -L
Will give you the firewall rules on the server.
Quote:
I don't think we are behind a router.
You really should check this.

Kind regards
 
Old 05-06-2011, 10:10 AM   #8
abaksh1
LQ Newbie
 
Registered: Feb 2010
Location: Baton Rouge, LA
Distribution: Fedora
Posts: 6

Original Poster
Rep: Reputation: 0
Here is the output of iptables -L command on my mom's box:

Chain INPUT (policy ACCEPT)

target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT udp -- anywhere 224.0.0.251 state NEW udp dpt:mdns
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target prot opt source destination
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Now what precisely is this telling me?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up SSH server SuperDude123 Linux - Server 9 02-14-2009 12:02 AM
help for setting up X server to use ssh parv Fedora 7 02-25-2008 09:51 AM
setting up a ssh server esdeedee Linux - Security 1 10-06-2006 06:24 AM
Setting up a SSH server Rob2105 Linux - Networking 8 03-17-2004 08:45 AM
Setting up an SSH server alany Linux - General 6 11-29-2002 06:49 PM


All times are GMT -5. The time now is 10:14 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration