Skip to content

Instantly share code, notes, and snippets.

@haosdent
Created November 6, 2015 13:47
Show Gist options
  • Save haosdent/47529dbc1a3d01f51e2c to your computer and use it in GitHub Desktop.
Save haosdent/47529dbc1a3d01f51e2c to your computer and use it in GitHub Desktop.
upload_file.sh
#!/usr/bin/env bash
SSH_CONNECTIONS=(${SSH_CONNECTION})
SERVER_HOST=${SSH_CONNECTIONS[2]}
SERVER_PORT=${SSH_CONNECTIONS[3]}
CURRENT_DIR=$(pwd)
echo upload_file ${SERVER_PORT} ${USER}@${SERVER_HOST}:${CURRENT_DIR}
@haosdent
Copy link
Author

sudo wget -O /usr/bin/rsub https://raw.github.com/aurora/rmate/master/rmate
sudo chmod +x /usr/bin/rsub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment