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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-19-2005, 08:49 AM
|
#1
|
Member
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524
Rep:
|
scp: port 22: No route to host
Hi!
I started a ssh connection between my computer and a server. Everything works fine. Then I tried the comman scp to copy a file from the server to my computer, and got the following message:
OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 181.140.98.70 [181.140.98.70] port 22.
debug1: connect to address 181.140.98.70 port 22: No route to host
ssh: connect to host 181.140.98.70 port 22: No route to host
Any suggestion? Thanks a lot.
|
|
|
09-19-2005, 09:15 AM
|
#2
|
Red Hat India
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260
Rep:
|
Hi there,
There are some options :
1) check out if there ia firewall in between. also first ping your own machine, your gateway, a machine outside your network and then a remote server. you can understand where the problem lies by this. perhaps a configuration in between is preventing your connection.
2) also please check your "/etc/ssh/ssh_config" file which is the client's file for ssh configuration. I think the problem is the configuration in "/etc/ssh/ssh_config". here just comment any lines with just the " Host " line. this should make it work most probably. if problems persists please post the errors again....
vimal.....
|
|
|
09-19-2005, 01:40 PM
|
#3
|
Member
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524
Original Poster
Rep:
|
the thing is that ssh works. I can connect to the server without any problem. I get problem as soon as I use scp although it uses port 22 too.
|
|
|
12-09-2009, 10:24 AM
|
#4
|
LQ Newbie
Registered: Dec 2009
Posts: 1
Rep:
|
check your resolv.conf people!
I've had he same issue trying to scp files and folders from one linux machine over to another one on the same network.
Machine A had an externally accessible IP and machine B had a local network IP. so Machine A couldn't find the route to host B because it went searcing through my external gateway while machine A was using the internal gateway.
so, i gave machine A a fixed external IP as well and added my external gateway to the /etc/Resolv.conf. done! i can now scp/ssh with no problem.
Good luck everyone!
Last edited by vrnd; 12-09-2009 at 10:25 AM.
|
|
|
10-22-2013, 09:58 PM
|
#5
|
LQ Newbie
Registered: Oct 2013
Posts: 1
Rep: 
|
Newbie response
I was stuck on this also. If in a non prod / lab environment, you can try the command "service iptables stop" and then try again. If scp or ssh works, the issue would seem to be in the iptables.
|
|
|
All times are GMT -5. The time now is 10:22 AM.
|
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
|
|