SSH协议已被阻止,我无法访问远程git存储库

时间:2015-03-21 09:28:48

标签: git github ssh bitbucket

我住在伊朗,自昨天以来,SSH一直被封锁;我需要访问bitbucket和github上的git存储库!

这是

的结果
  

ssh -v git@github.com

OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: /etc/ssh_config line 102: Applying options for *
debug1: Connecting to github.com [192.30.252.131] port 22.
debug1: Connection established.
debug1: identity file /Users/me/.ssh/id_rsa type 1
debug1: identity file /Users/me/.ssh/id_rsa-cert type -1
debug1: identity file /Users/me/.ssh/id_dsa type -1
debug1: identity file /Users/me/.ssh/id_dsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.2
debug1: Remote protocol version 2.0, remote software version libssh-0.6.0
debug1: no match: libssh-0.6.0
debug1: SSH2_MSG_KEXINIT sent
    Read from socket failed: Operation timed out

知道我现在该怎么办?

1 个答案:

答案 0 :(得分:2)

使用HTTPS代替或....

获取免费的AWS账户并启动微型Linux实例。然后,您可以将其用作GitHub的代理。您将需要使用端口443或未阻止的东西连接到Lunux服务器。如果您在本地运行OS X或Linux,请查看SSH配置。

另一种方法是在AWS和AWS上的Linux服务器之间打开VPN或Stunnel。