Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-04-2008, 07:38 AM
|
#1
|
|
LQ Newbie
Registered: May 2006
Posts: 14
Rep:
|
can not ssh my PC from another PC with the Centos Distribution
hi
I have CentOS distribition and I am within a local network 192.168.X.X.
I have access to any PC in my network using ssh from my PC but I can not do this from another PC to connect to my PC.I can neither ping nor ssh my PC. I disabled the firewall and I checked the iptables and I think that everything is right. the port 22 is open but I have the following error message:
ssh: connect to host 192.168.x.x port 22: No route to host
is there any one who can help me? 
|
|
|
|
02-04-2008, 08:53 AM
|
#2
|
|
Member
Registered: Jun 2005
Location: Chicago, IL, USA
Distribution: Fedora Core, CentOS
Posts: 188
Rep:
|
That error, "No Route to Host", is indicative of not having a default gateway set. You will want to make sure that there is a default gateway by typing [B]route[B] to show the routes available. If you have an entry with the flag "UG" then you have a Default Gateway and something else may be the problem.
To set the default gateway, try route add default 192.168.1.1, where 192.168.1.1 is the default gateway of your network.
|
|
|
|
02-04-2008, 09:47 AM
|
#3
|
|
LQ Newbie
Registered: May 2006
Posts: 14
Original Poster
Rep:
|
I found that there is a default entry in my network and the problem that even within the local network, I cannot get access to my PC
|
|
|
|
02-04-2008, 10:09 AM
|
#4
|
|
Member
Registered: Jun 2005
Location: Chicago, IL, USA
Distribution: Fedora Core, CentOS
Posts: 188
Rep:
|
Is it possible that the two machines are on different subnets? Is it possible for you to post all route and ifconfig results for computer1 and computer2?
|
|
|
|
02-04-2008, 10:31 AM
|
#5
|
|
Guru
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Rep: 
|
are you sure ssh d is running ?
Code:
it-etch:~# netstat -lnp | grep sshd
tcp6 0 0 :::22 :::* LISTEN 3432/sshd
can you ssh from your local machine to itself ?
ssh localhost
|
|
|
|
02-04-2008, 11:39 AM
|
#6
|
|
LQ Newbie
Registered: May 2006
Posts: 14
Original Poster
Rep:
|
thank you guys, I discovred that I made a mistake in my ip adress in despite of checking it.

|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:45 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|