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!

  • 2
    What have you tried? What errors are you getting? Do you have rights to the destination path on the remote computer?
    – Ed Manet
    Commented Dec 21, 2012 at 16:21
  • I have updated the error
    – wenzi
    Commented Dec 21, 2012 at 16:39

2 Answers 2


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?


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).

  • How would ssh work if this were the problem? Commented Dec 21, 2012 at 18:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .