우분투 13.10 및 12.10에서 github (git clone / pull / push 또는 기타)에 연결하려는 시도가 출력없이 실패하는 문제가 발생했습니다.
내 /.ssh 디렉토리 config
와 모든 ssh 키를 확인했습니다. 구성 파일이 없었고 ssh 키 id_rsa
는 내 github.com 계정에있는 것과 동일했습니다.
나는 github 서버에 ping을 시도했으며 가능했습니다.
상황을 디버그하기 위해 github 가이드를 따랐습니다.
ssh -T -v [email protected]
출력은 다음에서 중지됩니다.
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
누구나 내 git pull / push 등이 작동하도록 허용하는 솔루션이 있습니다.
해결책은 여기에서 찾았습니다. SSH는 퍼티에서 작동하지만 터미널에서는 작동하지 않습니다.
Ubuntu 13.10 / 12.10에서 로그인하고 sudo 액세스 권한을 얻습니다.
편집 /etc/ssh/ssh_config
하고 다음 줄의 주석 처리를 제거하십시오.
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
GSSAPIAuthentication yes
GSSAPIDelegateCredentials no
MACs hmac-md5,hmac-sha1,[email protected],hmac-ripemd160
다음 줄을 추가하십시오.
HostKeyAlgorithms ssh-rsa,ssh-dss
다음 /etc/ssh/ssh_config
과 같은 파일로 끝나야합니다.
Host *
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
MACs hmac-md5,hmac-sha1,[email protected],hmac-ripemd160
SendEnv LANG LC_*
HashKnownHosts yes
GSSAPIAuthentication yes
GSSAPIDelegateCredentials no
HostKeyAlgorithms ssh-rsa,ssh-dss
이제 실행 ssh -T -v [email protected]
하면 알려진 호스트 파일에 서버를 추가하라는 메시지가 표시됩니다. 예를 누르면 서버에 오신 것을 환영합니다.
Hi ****! You've successfully authenticated, but GitHub does not provide shell access.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다