Created
July 25, 2016 14:02
-
-
Save devjin0617/d05e8fae1b3733e7ad04ebdbb506921f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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