Push is a simple bash tool to push files to servers via SCP. Insted of you having to type the scp <Source> <Account>@<Host>:<Destination>
command each time you want to upload a file to your server, you can just type push <Source> <Destination>
To install Push do the following:
$ wget https://raw.githubusercontent.com/Moudoux/Push/master/install.sh
$ sudo chmod +x install.sh
$ bash install.sh
After you have installed push, you need to edit ~\bin\settings.sh
In the push.sh
file there are the following variables:
PW='password'
PORT="22"
SERVER="127.0.0.1"
USERNAME="username"
Change the variables to match your server
You can also change PWPROMPT="false"
to PWPROMPT="true"
and set PW='password'
to PW=''
if you don't want it to automatically authenticate you.
To use Push after installing and setting it up:
$ push <Source file> <Remote destination>