LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   cannot connect to centos from ubuntu (http://www.linuxquestions.org/questions/linux-networking-3/cannot-connect-to-centos-from-ubuntu-4175419881/)

vjramana 08-01-2012 10:24 PM

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

Peacedog 08-01-2012 10:42 PM

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

Good luck. ;-)

evo2 08-01-2012 10:42 PM

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.

vjramana 08-01-2012 11:08 PM

Quote:

Originally Posted by Peacedog (Post 4743666)
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.

vjramana 08-01-2012 11:10 PM

Quote:

Originally Posted by evo2 (Post 4743667)
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.

evo2 08-01-2012 11:42 PM

Hi,

Quote:

Originally Posted by vjramana (Post 4743686)
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.

schneidz 08-02-2012 12:01 AM

this post helped me:
http://www.linuxquestions.org/questi...7/#post3647292

evo2 08-02-2012 12:16 AM

Quote:

Originally Posted by schneidz (Post 4743717)

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.

suicidaleggroll 08-02-2012 11:30 AM

Can the CentOS machine ssh to itself at that IP address? What about to 127.0.0.1?


All times are GMT -5. The time now is 09:03 AM.