source: locker/bin/scripts-ssh @ 539

Last change on this file since 539 was 539, checked in by geofft, 14 years ago
Changed /bin/bash to /bin/athena/bash, which exists on {Deb,}Athena
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 533 bytes
Line 
1#!/bin/athena/bash
2
3lname=$1
4shift
5
6exec ssh \
7        -o GSSAPIAuthentication=yes \
8        -o GSSAPIDelegateCredentials=no \
9        -o PreferredAuthentications=gssapi-with-mic \
10        -o ForwardX11=no \
11        -o GlobalKnownHostsFile=/afs/athena.mit.edu/contrib/scripts/ssh/known_hosts \
12        -o UserKnownHostsFile=/dev/null \
13        scripts.mit.edu -l "$lname" "$(printf "''%q " "$@")"
14
15# ssh gets quoting wrong, so we do it ourself with printf "%q ".
16# Except bash 2 gets printf "%q " wrong for empty arguments, so we use
17# printf "''%q " instead.
18# Isn't software fun?
Note: See TracBrowser for help on using the repository browser.