找到的解决方案在这里: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,umac-64@openssh.com,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,umac-64@openssh.com,hmac-ripemd160
SendEnv LANG LC_*
HashKnownHosts yes
GSSAPIAuthentication yes
GSSAPIDelegateCredentials no
HostKeyAlgorithms ssh-rsa,ssh-dss
现在运行ssh -T -v git@github.com
,它将要求您将服务器添加到您的已知主机文件中。单击是,然后它将欢迎您使用服务器。
Hi ****! You've successfully authenticated, but GitHub does not provide shell access.