X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsecurity%2Fssh.sh;h=064ecf8a112c86021f2e970ad7fd29996648b810;hb=0237507bda3ecd0cebab0eeddc3cfefa4d9b3650;hp=ca226c3cf21d12b913300850b3ea681758fc2ea8;hpb=609955490ac73b6cc566a8c28df0e8683018ee15;p=feisty_meow.git diff --git a/scripts/security/ssh.sh b/scripts/security/ssh.sh index ca226c3c..064ecf8a 100755 --- a/scripts/security/ssh.sh +++ b/scripts/security/ssh.sh @@ -2,9 +2,13 @@ # wraps our calling the secure shell and lets us pick our credentials. -source "$FEISTY_MEOW_SCRIPTS/pick_credentials.sh" +source "$FEISTY_MEOW_SCRIPTS/security/pick_credentials.sh" -\ssh -i "$keyfile" -X $* +if [ ! -z "$keyfile" ]; then + \ssh -i "$keyfile" -X $* +else + \ssh -X $* +fi if [ $? -eq 0 ]; then # we don't want to emit anything extra if this is being driven by git.