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'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
What is wrong with scp? – jasonwryan Apr 2 '13 at 7:13
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


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.