Skip to content

Instantly share code, notes, and snippets.

@ddschmitz
Created June 15, 2016 22:53
Show Gist options
  • Save ddschmitz/b5f322db30f8cf6f8d56d8b80f0bc12b to your computer and use it in GitHub Desktop.
Save ddschmitz/b5f322db30f8cf6f8d56d8b80f0bc12b to your computer and use it in GitHub Desktop.
Quick-SSH
#!/bin/bash
#
# Author: Darrin Schmitz
# Date: 01/20/2016
option=$1
if [ -z "$1" ]; then
printf "\n\n\nWhere would you like to connect to?\n\n"
printf "1) [email protected]\n\n" #Replace these with the connections you wish to make.
printf "2) \n\n"
printf "3) \n\n"
printf "4) \n\n"
printf "5) \n\n"
printf "6) \n\n"
printf "7) \n\n"
printf "8) \n\n"
printf "9) \n\n"
printf "10) \n"
read option
fi
case "$option" in
1)
ssh [email protected] #These cases must correspond with the options above.
;;
2)
printf "This is not an option yet\n"
;;
3)
printf "This is not an option yet\n"
;;
4)
printf "This is not an option yet\n"
;;
5)
printf "This is not an option yet\n" #Add as many or as few options as you wish.
;;
6)
printf "This is not an option yet\n"
;;
7)
printf "This is not an option yet\n"
;;
8)
printf "This is not an option yet\n"
;;
9)
printf "This is not an option yet\n"
;;
10)
printf "This is not an option yet\n"
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment