Last active
December 27, 2017 00:35
-
-
Save gracefullight/eca93dd6fe77d50c2e223bcc2d3dc9e0 to your computer and use it in GitHub Desktop.
ssh key 등록 후에도 계속 public_key가 등록이 되지 않았다고 요구할 경우 (cafe24의 경우 ssh-agent를 인식하지 못 했다)
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
# pull.sh | |
echo "=> Kill previous ssh agent" | |
for pid in `ps -ef | grep ssh-agent | awk '{print $2}'`; | |
do kill -9 $pid; | |
done | |
echo "=> Initialize ssh agent" | |
eval "$(ssh-agent)" | |
echo "=> add key" | |
ssh-add ~/.ssh/bitbucket | |
echo "=> git pull" | |
git reset --hard HEAD && git pull origin master | |
# todo | |
# - ssh key를 옵션으로 등록하기 | |
# - git 설치 체크 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment