Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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 138.46.231.12 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
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 '12 at 16:21
    
I have updated the error –  wenzi Dec 21 '12 at 16:39

2 Answers 2

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

 
discard

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.