Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using a remote machine, which is in a lab and the administrator ask a RSA public key and then I can login into that machine using a passphrase I set

now I want to use scp to copy local stuff to the remote machine but when I use scp, the error is

ssh: connect to host port 22: No route to host

are there any ways to do that? I'm using fedora, the remote machine is on ubuntu thanks!

share|improve this question
What have you tried? What errors are you getting? Do you have rights to the destination path on the remote computer? – Ed Manet Dec 21 '12 at 16:21
I have updated the error – wenzi Dec 21 '12 at 16:39
up vote 4 down vote accepted

It should just be:

scp /local/path/to.file <user>@<ubuntu machine>:/remote/path/

from terminal on your Fedora machine. Do you receive an error? What is the output after running the command?

share|improve this answer
it is ok now, thanks! – wenzi Dec 21 '12 at 16:41

The problem you describe has nothing to do with ssh or scp.

Obviously you had a network configuration issue (probably a default route which wasn't correctly set).

share|improve this answer
How would ssh work if this were the problem? – Michael Mrozek Dec 21 '12 at 18:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.