How to Upload a File via SSH and Command Line

My preference for daily work is usually GUI applications, like Visual Studio Code for text editing and Cyberduck for remote file server management. I’m also a huge fan of automation, so I do try to learn the command line equivalents of UI functions. My latest desire was wanting to know how to upload a file […]

The post How to Upload a File via SSH and Command Line appeared first on David Walsh Blog.


This content originally appeared on David Walsh Blog and was authored by David Walsh

scp ~/Downloads/NestedT.png root@64.207.144.103:/var/www/vhosts/davidwalsh.name/httpdocs/demo

My preference for daily work is usually GUI applications, like Visual Studio Code for text editing and Cyberduck for remote file server management. I’m also a huge fan of automation, so I do try to learn the command line equivalents of UI functions. My latest desire was wanting to know how to upload a file via SSH from command line.

To upload a file to a remote server from command line, use scp and the file path with the remote destination:

scp path/to/local/file.png user@hostname:/path/to/upload/

I’ll be honest: I’ll probably still use a GUI for personal uploading, but knowing how to upload via automation is still super valuable!

The post How to Upload a File via SSH and Command Line appeared first on David Walsh Blog.


This content originally appeared on David Walsh Blog and was authored by David Walsh


Print Share Comment Cite Upload Translate Updates
APA

David Walsh | Sciencx (2021-06-28T11:18:44+00:00) How to Upload a File via SSH and Command Line. Retrieved from https://www.scien.cx/2021/06/28/how-to-upload-a-file-via-ssh-and-command-line/

MLA
" » How to Upload a File via SSH and Command Line." David Walsh | Sciencx - Monday June 28, 2021, https://www.scien.cx/2021/06/28/how-to-upload-a-file-via-ssh-and-command-line/
HARVARD
David Walsh | Sciencx Monday June 28, 2021 » How to Upload a File via SSH and Command Line., viewed ,<https://www.scien.cx/2021/06/28/how-to-upload-a-file-via-ssh-and-command-line/>
VANCOUVER
David Walsh | Sciencx - » How to Upload a File via SSH and Command Line. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/06/28/how-to-upload-a-file-via-ssh-and-command-line/
CHICAGO
" » How to Upload a File via SSH and Command Line." David Walsh | Sciencx - Accessed . https://www.scien.cx/2021/06/28/how-to-upload-a-file-via-ssh-and-command-line/
IEEE
" » How to Upload a File via SSH and Command Line." David Walsh | Sciencx [Online]. Available: https://www.scien.cx/2021/06/28/how-to-upload-a-file-via-ssh-and-command-line/. [Accessed: ]
rf:citation
» How to Upload a File via SSH and Command Line | David Walsh | Sciencx | https://www.scien.cx/2021/06/28/how-to-upload-a-file-via-ssh-and-command-line/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.