Archived
3
0
This repository has been archived on 2024-07-04. You can view files and clone it, but cannot push or open issues or pull requests.
Files
finninde ba32393855 Create rusty.sh
rusty.sh is the client. it sends what is to be shown over ssh
2014-08-31 23:41:02 +02:00

32 lines
679 B
Bash

#!/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