Skip to content

Instantly share code, notes, and snippets.

@ThomasRooney
Created February 26, 2014 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThomasRooney/9233098 to your computer and use it in GitHub Desktop.
Save ThomasRooney/9233098 to your computer and use it in GitHub Desktop.
impssh
impssh() {
shellServerIndex=$((RANDOM%4+1))
username="tr111"
shellServer=shell$shellServerIndex.doc.ic.ac.uk
if (( $# >= 1 )) ; then
ssh -t $username@$shellServer "ssh $1"
else
ssh $username@$shellServer
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment