LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-12-2008, 12:37 PM   #1
keyboard1973
Member
 
Registered: Jun 2008
Posts: 52

Rep: Reputation: 15
SSH, Ping, FTP


Hello,

I have just installed CentOS 5 on my laptop. I have it running on another server also with a windows box and a mac running Darwin. I was having problems trying to ssh into centos 5 from my laptop running cent 5. I also tried to ftp, no go, I am running vsftp and I can ftp and ssh from all other boxes. I tried to ping from the laptop to the other cent box and cant ping either on the local lan using 192.168.2.138. Just to troble shoot I stopped the firewall and disabled selinux and I also put the lan IP of the laptop in the hosts.allow file on the centos5 box. I can ssh into Darwin and ftp, also ping all other boxes on the lan but the centos 5 box for the laptop running centos 5. Any suggestions?

Thanks,

Keith
 
Old 07-12-2008, 12:42 PM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,542
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

Check the kernel route table with 'route -n' from the cli.
 
Old 07-13-2008, 12:47 AM   #3
keyboard1973
Member
 
Registered: Jun 2008
Posts: 52

Original Poster
Rep: Reputation: 15
Route Table

Hello,

This is the output of route -n

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth0

Not sure what I should be looking for there or if I should add the IP 192 of the other cent os box .

Thanks again

Keith
 
Old 07-13-2008, 03:20 PM   #4
shridhar005
Member
 
Registered: Jul 2008
Posts: 90

Rep: Reputation: 17
Hey friend,
Check whether sshd is running or not.
 
Old 07-13-2008, 08:48 PM   #5
jamesapnic
Member
 
Registered: Jul 2008
Posts: 40

Rep: Reputation: 15
I think it has a firewall by default.

Try:

Quote:
iptables -I INPUT -j ACCEPT -p tcp --dport 22
Type this at the actual console, when logged in as root.
 
Old 07-14-2008, 04:28 AM   #6
keyboard1973
Member
 
Registered: Jun 2008
Posts: 52

Original Poster
Rep: Reputation: 15
Troubleshooting

Hello,

SSHD is running I can get to it from all other boxes, the firewall is turned down for testing and I have selinux disabled. The only issue I have is with the new install of the laptop running centos 5, I cant ping the other centos 5 server or ftp it, and I can't ssh into it. All other boxes work for everything vise versa with the server and the laptop. I did verify at the console sshd is running. I am stumped and I don't understand the affect of the route table.

Thanks again,

Keith
 
Old 07-14-2008, 04:38 AM   #7
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 61
So, let's confirm. From the laptop machine, please run the following, and show results:

1) ifconfig -a
2) ping localhost
3) route
4) iptables -L
 
Old 07-14-2008, 06:10 PM   #8
keyboard1973
Member
 
Registered: Jun 2008
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Mr. C. View Post
So, let's confirm. From the laptop machine, please run the following, and show results:

1) ifconfig -a
2) ping localhost
3) route
4) iptables -L

ifconfig -a

eth0 Link encap:Ethernet HWaddr 08:00:46:58:C3:55
inet addr:192.168.2.50 Bcast:255.255.255.255 Mask:255.255.255.0
inet6 addr: fe80::a00:46ff:fe58:c355/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12330 errors:0 dropped:0 overruns:0 frame:0
TX packets:10626 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11022211 (10.5 MiB) TX bytes:1519790 (1.4 MiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2781 errors:0 dropped:0 overruns:0 frame:0
TX packets:2781 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4553068 (4.3 MiB) TX bytes:4553068 (4.3 MiB)

peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:12382 errors:0 dropped:0 overruns:0 frame:0
TX packets:10740 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11031494 (10.5 MiB) TX bytes:1551978 (1.4 MiB)
Interrupt:10 Base address:0x4800

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

veth1 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

veth2 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

veth3 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:10735 errors:0 dropped:0 overruns:0 frame:0
TX packets:12370 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1537546 (1.4 MiB) TX bytes:11029330 (10.5 MiB)

vif0.1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

vif0.2 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

vif0.3 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:9658 (9.4 KiB)

xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:2818 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:323796 (316.2 KiB) TX bytes:0 (0.0 b)

ping localhost

PING localhost.WorkGroup (24.28.193.9) 56(84) bytes of data.
64 bytes from 24.28.193.9: icmp_seq=1 ttl=39 time=61.5 ms
64 bytes from 24.28.193.9: icmp_seq=2 ttl=39 time=61.3 ms
64 bytes from 24.28.193.9: icmp_seq=3 ttl=39 time=111 ms
64 bytes from 24.28.193.9: icmp_seq=4 ttl=39 time=108 ms
64 bytes from 24.28.193.9: icmp_seq=6 ttl=39 time=97.1 ms
64 bytes from 24.28.193.9: icmp_seq=8 ttl=39 time=65.1 ms
64 bytes from 24.28.193.9: icmp_seq=10 ttl=39 time=66.4 ms
64 bytes from 24.28.193.9: icmp_seq=11 ttl=39 time=89.2 ms
64 bytes from 24.28.193.9: icmp_seq=12 ttl=39 time=66.4 ms
64 bytes from 24.28.193.9: icmp_seq=13 ttl=39 time=61.6 ms
64 bytes from 24.28.193.9: icmp_seq=14 ttl=39 time=63.0 ms
64 bytes from 24.28.193.9: icmp_seq=15 ttl=39 time=71.9 ms
64 bytes from 24.28.193.9: icmp_seq=17 ttl=39 time=61.0 ms
64 bytes from 24.28.193.9: icmp_seq=18 ttl=39 time=63.5 ms
64 bytes from 24.28.193.9: icmp_seq=19 ttl=39 time=62.8 ms
64 bytes from 24.28.193.9: icmp_seq=20 ttl=39 time=70.4 ms
64 bytes from 24.28.193.9: icmp_seq=21 ttl=39 time=61.1 ms
64 bytes from 24.28.193.9: icmp_seq=22 ttl=39 time=60.6 ms

--- localhost.WorkGroup ping statistics ---
22 packets transmitted, 18 received, 18% packet loss, time 21027ms
rtt min/avg/max/mdev = 60.621/72.435/111.453/16.460 ms

route

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.2.1 0.0.0.0 UG 0 0 0 eth0

iptables -L

Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT udp -- anywhere anywhere udp dpt:bootps
ACCEPT tcp -- anywhere anywhere tcp dpt:bootps
RH-Firewall-1-INPUT all -- anywhere anywhere

Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere 192.168.122.0/24 state RELATED,ESTABLISHED
ACCEPT all -- 192.168.122.0/24 anywhere
ACCEPT all -- anywhere anywhere
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
RH-Firewall-1-INPUT all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain RH-Firewall-1-INPUT (2 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere icmp any
ACCEPT esp -- anywhere anywhere
ACCEPT ah -- anywhere anywhere
ACCEPT udp -- anywhere 224.0.0.251 udp dpt:mdns
ACCEPT udp -- anywhere anywhere udp dpt:ipp
ACCEPT tcp -- anywhere anywhere tcp dpt:ipp
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Thanks again,

Keith
 
Old 07-14-2008, 08:56 PM   #9
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 61
Quote:
Originally Posted by keyboard1973 View Post
...
ping localhost

PING localhost.WorkGroup (24.28.193.9) 56(84) bytes of data.
64 bytes from 24.28.193.9: icmp_seq=1 ttl=39 time=61.5 ms
Keith, were did that IP come from and why isn't it 127.0.0.1 ?

Code:
$ ping localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.031 ms
 
Old 07-20-2008, 02:18 AM   #10
keyboard1973
Member
 
Registered: Jun 2008
Posts: 52

Original Poster
Rep: Reputation: 15
Localhost ip

Quote:
Originally Posted by Mr. C. View Post
Keith, were did that IP come from and why isn't it 127.0.0.1 ?

Code:
$ ping localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.031 ms
Hello,

Its been a while my modem was down had to get that taken care of. The local host ip that is showing is coming from the router. The ip listed is a DNS ip address from my ISP. My server when pinging the local host also shows the same DNS IP address.

Thanks again,

Keith
 
Old 08-24-2008, 03:23 AM   #11
mmcfly8888
LQ Newbie
 
Registered: Jul 2008
Posts: 12

Rep: Reputation: 0
i just solved this problem. it's roadrunner's search page. you need to go to http://24.28.193.9 and go to the bottom. click 'opt in or opt out' and disable all of the features and you are good to go. and time warner sucks!
 
  


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
ftp over ssh tunnel; ftp refuses to work jakykong Linux - Networking 16 10-16-2011 08:34 AM
can ping but not ssh yumener Linux - Networking 10 11-23-2006 02:08 PM
ping fast, but ssh, ftp slow longtex Linux - Networking 10 10-02-2005 09:42 PM
Can ping but can not telnet/ftp/ssh my box fbarre Linux - Networking 10 04-20-2004 01:11 AM
Can't ping/ssh my box, Shorewall seems to block all traffic except http / ftp tiduck Linux - Networking 10 05-22-2003 10:21 PM


All times are GMT -5. The time now is 10:20 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration