Create rusty.sh

rusty.sh is the client. it sends what is to be shown over ssh
This commit is contained in:
finninde 2014-08-31 23:41:02 +02:00
parent 52819e712a
commit ba32393855

31
rusty.sh Normal file
View File

@ -0,0 +1,31 @@
#!/bin/bash
readonly PROGNAME="$(basename $0)"
readonly PROGDIR="$(readlink -m "(dirname $0)")"
readonly ARGS="$@"
readonly SERVER="brzeczyszczykiewicz"
main() {
mkdir -p ~/.ssh
cp ~/id_rsa_rusty-server ~/.ssh
chmod 0600 ~/.ssh/id_rsa_rusty-server
ssh pvv@${SERVER}.pvv.ntnu.no -i ~/.ssh/id_rsa_rusty-server -t -o PasswordAuthentication=no $ARGS
}
usage() {
tee <<- EOF
usage: $PROGNAME options
Program remotely passes command to ${SERVER}.
OPTIONS:
-s --show shows a youtube video/gif/png from net
-h --help shows this help
-v --verbose verbose. This may be implemented
EOF
}
main