I. Abstract
Sometimes we experience the situation we need to upload or download something and there is no ftp installed yet. The following article provides information about uploading (push’ing) or downloading (pull’ing) via SSH using the terminal only.
II. Push commands (Upload to server)
client$ ssh remote_address cat <localfile ">" remote_file
client$ ssh remote_address cat <localfile - ">" remote_file
client$ ssh remote_address cat <local_file "|" dd of=remote_file
client$ ssh remote_address cat - <local_file "|" dd of=remote_file
client$ cat local_file | ssh remote_address cat ">" remote_file
client$ cat local_file | ssh remote_address cat - ">" remote_file
client$ dd if=local_file | ssh remote_address dd of=remote_file
III. Pull commands (Download from server)
client$ ssh remote_address cat remote_file > local_file
client$ ssh remote_address cat "<" remote_file >local_file
client$ ssh remote_address dd if=remote_file | dd of=local_file
If that helped you well, consider clicking our sponsor (non offensive Google Adsense) to help maintaining this project free for all of you…
IV. Final words
We hope we could be of service and those commands helped you a bit. In case you found what you were looking for, you may consider our sponsors. They really got the coolest offers and allow us to run this site. Thanks.
scp does the same, no?
Pingback: >SSH Download & Upload File « harian k_de (kdenotes)
Pingback: How to upload a file from Windows machine to Linux machine using command lines via PuTTy? | BlogoSfera