local에서 git SSH-key 발급 후 github에 등록하고
처음으로 github에 ssh로 push를 하는 중에 발생한 문제.
git push -u origin master
명령어를 쳤을 때 명령어가 실행되지 않고 오래동안 로딩이 되면서
ssh: connect to host github.com port 22: Operation timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
오류가 발생했다.
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
입력을 했으나 계속해서 같은 문제가 발생
sudo vi ~/.ssh/config
명령어 입력 후Host github.com
Hostname ssh.github.com
Port 443
해결
처음 SSH키 등록 후 ssh-key를 사용해서 github에 push하는 경우
보완상 문제가 발생하는 경우가 많아서 미리 블로그에 기재하고 자주 봐야겠다.