Skip to content
/ Push Public

A simple bash tool to push files to servers via SCP

License

Notifications You must be signed in to change notification settings

Moudoux/Push

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Push

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>

Installation

To install Push do the following:

$ wget https://raw.githubusercontent.com/Moudoux/Push/master/install.sh
$ sudo chmod +x install.sh
$ bash install.sh

Setting it up

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.

Usage

To use Push after installing and setting it up:

$ push <Source file> <Remote destination>

Releases

No releases published

Packages

No packages published

Languages