/SSH_login

ssh로 접속할 때 하나하나 치는게 귀찮아서 10분만에 만든 간단 ssh 로그인 헬퍼

Primary LanguageShell

SSH_login

Simple ssh login helper created in 10 minutes because it is annoying to input each one when connecting to ssh
Need bash version over 4

Useage

edit ssh_login.sh

declare -A INSTANCE=(
  [ONE]=1.2.3.4
  [TWO]=1.2.3.4
  [THREE]=1.2.3.4
  ...
)

declare -A KEY=(
  [ONE]=ONE_KEY.pem
  [TWO]=TWO_KEY.pem
  [THREE]=THREE_KEY.pem
  ...
)

declare -A USER=(
  [ONE]=ONE_loginID
  [TWO]=TWO_loginID
  [THREE]=THREE_loginID
  ...
)

KEY_PATH=/PATH/TO/KEY/

# chmod 777 ssh_login.sh

# ./ssh_login.sh one

ssh connection to one's information

TODO

  • Also compatible with bash 3
  • Make GUI Version

Implement to change to GUI instead of manually changing instance info input one by one