LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-01-2012, 09:24 PM   #1
vjramana
Member
 
Registered: Sep 2009
Posts: 88

Rep: Reputation: 0
cannot connect to centos from ubuntu


I am using ubuntu10.10 for sometime and few months back I did setup another linux machine with Cenots5. I used to connect to the Centos5 machine from my ubuntu via ssh and used to transfer files using scp.

Recently I upgraded the Centos5 machine with centos6.3.
Now that I did all the setting as before in the Centos6.3 machine and tried to ssh from Centos to Ubunut, but it fails to connect.

I get message as :

Quote:
ssh: connect to host 192.168.168.115 port 22: No route to host
Can anyone help to solve this issue?
Thanks in advance.
Vijay
 
Old 08-01-2012, 09:42 PM   #2
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
Hi vjramana, Are both machines on the same network, how are they connected? What do the firewalls look like on both machines?

Good luck. ;-)
 
Old 08-01-2012, 09:42 PM   #3
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,302

Rep: Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139
Hi,

Are there any other network problems? For example is the network on the centos box really up?

Also are you sure that is the correct IP address? If yes, what is the output
Code:
traceroute 192.128.168.115
when run from the Ubuntu machine?

Evo2.
 
Old 08-01-2012, 10:08 PM   #4
vjramana
Member
 
Registered: Sep 2009
Posts: 88

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Peacedog View Post
Hi vjramana, Are both machines on the same network, how are they connected? What do the firewalls look like on both machines?

Good luck. ;-)
Yea both machines are in the same network. Previously there were no problem at all.
We use IPCOP router.
 
Old 08-01-2012, 10:10 PM   #5
vjramana
Member
 
Registered: Sep 2009
Posts: 88

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by evo2 View Post
Hi,

Are there any other network problems? For example is the network on the centos box really up?

Also are you sure that is the correct IP address? If yes, what is the output
Code:
traceroute 192.128.168.115
when run from the Ubuntu machine?

Evo2.
There is no problem in network. The network in centos is up and run. From centos I can access internet.

my ubunt machine dont have traceroute package. When I tried to install, it says error because mine is version 10.10.
 
Old 08-01-2012, 10:42 PM   #6
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,302

Rep: Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139
Hi,

Quote:
Originally Posted by vjramana View Post
There is no problem in network. The network in centos is up and run. From centos I can access internet.
Ok, so it looks to be a problem with your internal network.

Quote:
my ubunt machine dont have traceroute package. When I tried to install, it says error because mine is version 10.10.
Sorry, without the exact error message I can't easily help you install it. So, what is the output of
Code:
sudo apt-get install traceroute
In the mean time can you at least try to ping from the Ubuntu machine. Eg
Code:
ping 192.128.168.115
Also you did not say if you confirmed that the IP address is correct.

Evo2.
 
Old 08-01-2012, 11:01 PM   #7
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 3,983

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
this post helped me:
http://www.linuxquestions.org/questi...7/#post3647292
 
Old 08-01-2012, 11:16 PM   #8
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,302

Rep: Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139
Quote:
Originally Posted by schneidz View Post
Yeah... but the OP is getting "No route to host", not "connection refused". This why I've now explicitly asked twice for the IP address to be confirmed...

It is usually better (IMHO) to gather information to try to understand the problem instead randomly trying different things to fix a problem.

Evo2.
 
Old 08-02-2012, 10:30 AM   #9
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 2,795

Rep: Reputation: 990Reputation: 990Reputation: 990Reputation: 990Reputation: 990Reputation: 990Reputation: 990Reputation: 990
Can the CentOS machine ssh to itself at that IP address? What about to 127.0.0.1?
 
  


Reply

Tags
ssh


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
First Time Trying to Get CentOS 5 to Connect Wirelessly Ascendancy5 Linux - Wireless Networking 4 06-16-2012 02:41 PM
XP will not connect to Centos 5 mallettaa Red Hat 7 10-13-2011 04:00 PM
how do i connect my blue tooth headset to Ubuntu, it is unable to connect. salfuser Linux - Hardware 2 01-12-2009 10:28 AM
Cannot Connect to Internet; CentOS lucknowm62 Linux - Networking 8 08-26-2007 01:27 PM
how to connect to a network printer from centos? romeo_tango Linux - Desktop 5 05-10-2007 10:40 PM


All times are GMT -5. The time now is 04:38 AM.

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