Last change
on this file since 2452 was
1920,
checked in by achernya, 13 years ago
|
Bring known_hosts under version control
Bring the known_hosts file under version control. It previous had been
sitting in the ssh/ directory in the locker.
Additionally, correct the scripts-ssh and ssh scripts to point to this
new location.
Note that this requires the creation of the etc -> checkout/etc
symlink in the locker.
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
File size:
532 bytes
|
Rev | Line | |
---|
[540] | 1 | #!/bin/bash |
---|
[438] | 2 | |
---|
[463] | 3 | lname=$1 |
---|
| 4 | shift |
---|
| 5 | |
---|
[438] | 6 | exec ssh \ |
---|
| 7 | -o GSSAPIAuthentication=yes \ |
---|
| 8 | -o GSSAPIDelegateCredentials=no \ |
---|
| 9 | -o PreferredAuthentications=gssapi-with-mic \ |
---|
| 10 | -o ForwardX11=no \ |
---|
[1920] | 11 | -o GlobalKnownHostsFile=/afs/athena.mit.edu/contrib/scripts/etc/known_hosts \ |
---|
[438] | 12 | -o UserKnownHostsFile=/dev/null \ |
---|
[1404] | 13 | -t \ |
---|
[464] | 14 | scripts.mit.edu -l "$lname" "$(printf "''%q " "$@")" |
---|
| 15 | |
---|
| 16 | # ssh gets quoting wrong, so we do it ourself with printf "%q ". |
---|
| 17 | # Except bash 2 gets printf "%q " wrong for empty arguments, so we use |
---|
| 18 | # printf "''%q " instead. |
---|
| 19 | # Isn't software fun? |
---|
Note: See
TracBrowser
for help on using the repository browser.