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've found the following command pretty convenient for transferring files to servers I have ssh access to:

cat myfile.txt | ssh my.host.edu "cat > myfile.txt"

Is there a similarly convenient command for bringing files to my local computer? If it would make it any easier, I don't mind installing command line utilities from the standard Ubuntu repos.

share|improve this question
6  
What is wrong with scp? –  jasonwryan Apr 2 '13 at 7:13

2 Answers 2

up vote 2 down vote accepted

Try this one :

ssh my.host.edu "cat myfile.txt" > myfile.txt

But if you want to do file transfert overt ssh, use sftp which is a tool who is dedicated to this.

share|improve this answer

It's installed by default, it comes with openssh-client:

scp user@my.host.edu:/path/to/myfile.txt /path/to/local/myfile.txt
share|improve this answer

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.