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
    Dec 21, 2012 at 16:21
  • I have updated the error
    – wenzi
    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? Dec 21, 2012 at 18:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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