I have never done this before and I am creating a bash shell script to do this for me. I will also be connecting via ssh to do some things (which I already know how to do). So maybe there is a way to upload files via ssh so I can do it all in one connection?
How can I do this?
#!/bin/sh
cd ./files-to-upload
#upload the files
You can use scp
to copy to a remote machine.
scp <file to upload> <username>@<hostname>:<destination path>
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments