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_fileclient$ ssh remote_address cat <localfile - ">" remote_fileclient$ ssh remote_address cat <local_file "|" dd of=remote_fileclient$ ssh remote_address cat - <local_file "|" dd of=remote_file
client$ cat local_file | ssh remote_address cat ">" remote_fileclient$ 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_fileclient$ ssh remote_address cat "<" remote_file >local_fileclient$ 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.
