Skip to content

Instantly share code, notes, and snippets.

@devjin0617
Created July 25, 2016 14:02
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 devjin0617/d05e8fae1b3733e7ad04ebdbb506921f to your computer and use it in GitHub Desktop.
Save devjin0617/d05e8fae1b3733e7ad04ebdbb506921f to your computer and use it in GitHub Desktop.
#!/bin/sh
if [$# -lt 1 ]; then
echo "$0 <server_name> 형식으로 작성해주세요 (master, stage, develop)"
exit 0
fi
if [ $1 = "master" ]; then
echo "connect to master"
ssh -i master.pem ubuntu@url.to
elif [ $1 = "stage" ]; then
echo "connect to stage"
ssh -i stage.pen ubuntu@url.to
elif [ $1 = "develop" ]; then
echo "connect to develop"
ssh ubuntu@url.to -p <port>
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment