Sorry I'm new to this sort of thing. I'm trying to write a bash script that uploads a file to a server. How can I achieve this? Is a bash script the right thing to use for this?
Solution:
I ended up using scp
to copy the files securely.
scp <file to upload> <username>@<hostname>:<destination path>
I also set up public key authentication so I didn't have to enter my password every time I ran my script.