No route to host

Thread Tools Search this Thread
Operating Systems Linux Red Hat No route to host
# 1  
Old 08-21-2009
Bug No route to host

I get below error when using telnet and ssh ??
Why ? the ip address of linux server is =tstgcota ??

[root@TSTgcota sbin]# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface U 0 0 0 eth0 U 0 0 0 eth0 U 0 0 0 eth0 UG 0 0 0 eth0
[root@TSTgcota sbin]# telnet
telnet: connect to address No route to host
telnet: Unable to connect to remote host: No route to host
[root@TSTgcota sbin]# ssh
ssh: connect to host port 22: No route to host
[root@TSTgcota sbin]#
# 2  
Old 08-21-2009
is the network you are on connected to the destination server's network?
the destination server has a private network ip address (should not be accessible from the internet).
more about private networks here.
# 3  
Old 08-21-2009
You tried to ping the server ? Did you verify the ssh service on your server ? Is the port 22 opened ? Is root allowed to ssh to the sever ?
Hope that helps!

Last edited by thanhdat; 08-21-2009 at 07:06 AM..
# 4  
Old 08-21-2009
Your computer and the remote computer are on different networks. IP addresses alone are not enough to simply get there. You need to set up a route to get to the remote computer.
# 5  
Old 08-21-2009
Question No route to host

Originally Posted by mark54g
Your computer and the remote computer are on different networks. IP addresses alone are not enough to simply get there. You need to set up a route to get to the remote computer.

Can you describe in more detail ?? what is the procedure to add route ??/
what "route" I need to add ???
# 6  
Old 08-22-2009
Use google. We have given you the answer, but since we do not know how the entirety of your network is configured, you need to do this part.

The basics are

You/your subnet > gateway < remote system
# 7  
Old 08-25-2009
Use the route command. man route for more information.

To see a list of the current routes (gateways will be flagged UG)
route -n

To add a gateway
route add gw .....

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

"Network error: No route to host" While connecting guest RHEL4 using putty

Hi, I have installed RHEL4 using vmware workstation.. Host OS: Windows XP Guest OS: RHEL4 Pls refer step 17 & 18 in below link... ORACLE-BASE - Red Hat Enterprise Linux 4 and Centos 4 Installation 1) If i choose to assign IP automatically (using DHCP) means, i am able to connect RHEL4... (3 Replies)
Discussion started by: thomasraj87
3 Replies

2. UNIX for Dummies Questions & Answers

No route to host - mail error

A linux box is supposed to emailing the results of backups to the windows exchange server, but nothing arrives. it never has, as the muppet who set up the Windows domain knew nothing about linux. I know only slightly more than that... pretty sure sendmail is the daemon running to handle mail. it... (0 Replies)
Discussion started by: Noewon
0 Replies

3. IP Networking

IP forwarding Route/Host ?

I have a unix machine that operates some CNC machines, I need to hook up my windows machine through core ftp to load programs onto the box. The card i need to route to for the FTP on unix is tu1 I need to check the routing tables on the unix box to see which IP address will automatically... (2 Replies)
Discussion started by: moticulus
2 Replies

4. AIX

problem with host route

Hi, I have a system with network interfaces en0 and en1 en0: physical ip: virtual ip1: virtual ip2: en1: physical ip: virtual ip1: virtual ip2: default gateway ist when I open a... (12 Replies)
Discussion started by: funksen
12 Replies

5. Programming

socket() No Route to host ??

Hello, My program should connect to a server. here's the code : int main(int argc, char *argv){ int sock = socket(AF_INET, SOCK_STREAM, 0); if(sock == -1){ perror("socket()"); exit(errno); } printf("retour socket = %d",sock); struct sockaddr... (1 Reply)
Discussion started by: nowayy
1 Replies

6. UNIX for Advanced & Expert Users

Help! How to find the local host after few ssh hops to remote host???

I do a ssh to remote host(A1) from local host(L1). I then ssh to another remote(A2) from A1. When I do a who -m from A2, I see the "connected from" as "A1". => who -m userid pts/2 2010-03-27 08:47 (A1) I want to identify who is the local host who initiated the connection to... (3 Replies)
Discussion started by: gomes1333
3 Replies

7. Programming

Error: No Route to host...urgent {socket() connection}

hello, I am doing Socket programming.. when I am establishing a socket connection using TCP protocol ...I am getting Error :: No route to host. at the client side during connect() call...........that it is returning -1. So I thing problem lies here......but what to do now... So for just... (6 Replies)
Discussion started by: arunchaudhary19
6 Replies

8. UNIX for Dummies Questions & Answers

no route to host

I not able to ping outside the internet. i am able to ping my 192. ip address. when i try to ping a 68. ip address i get no route to host. what should i do to correct this issue. I have sco openserver 5.05 (6 Replies)
Discussion started by: scoman2
6 Replies

9. UNIX for Dummies Questions & Answers

add route gives target: Host name lookup failure

We need to add our remote office to our linux routing table. Our internal office ip addresses are all in the range of 198.9.200.x with an subnet mask of the remote office has ip addresses in the range of and also a subnet mask of when i use the... (3 Replies)
Discussion started by: progressdll
3 Replies

10. IP Networking

QNX host cannot ping SCO host, vice versa

The problem I am facing now is that the QNX host could not ping the SCO host and vice versa. They are in the same domain, ie, 172.20.3.xx. As I am very new to Unix, I guess I must have missed out some important steps. Pls help... Thanx alot (2 Replies)
Discussion started by: gavon
2 Replies
Login or Register to Ask a Question