From ba323938552446fb0de6093d375107231fa17d07 Mon Sep 17 00:00:00 2001 From: finninde Date: Sun, 31 Aug 2014 23:41:02 +0200 Subject: [PATCH] Create rusty.sh rusty.sh is the client. it sends what is to be shown over ssh --- rusty.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 rusty.sh diff --git a/rusty.sh b/rusty.sh new file mode 100644 index 0000000..e1f922c --- /dev/null +++ b/rusty.sh @@ -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