Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 从Google Cloud Shell到外部服务器的出站SSH_Git_Ssh_Google Cloud Shell - Fatal编程技术网

Git 从Google Cloud Shell到外部服务器的出站SSH

Git 从Google Cloud Shell到外部服务器的出站SSH,git,ssh,google-cloud-shell,Git,Ssh,Google Cloud Shell,我正在玩gcloudApp Engine,想使用谷歌云Shell从我的私有git服务器克隆一个git存储库,但是,由于某些原因,我得到了连接超时 这是ssh给我的: $ ssh -vvv myuser@myserver.mydomain.com -p 2121 OpenSSH_7.4p1 Debian-10+deb9u4, OpenSSL 1.0.2l 25 May 2017 debug1: Reading configuration data /etc/ssh/ssh_config debu

我正在玩gcloudApp Engine,想使用谷歌云Shell从我的私有git服务器克隆一个git存储库,但是,由于某些原因,我得到了连接超时

这是ssh给我的:

$ ssh -vvv myuser@myserver.mydomain.com -p 2121
OpenSSH_7.4p1 Debian-10+deb9u4, OpenSSL 1.0.2l  25 May 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "myserver.mydomain.com" port 2121
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to myserver.mydomain.com [158.120.145.109] port 2121.
debug1: connect to address 158.120.145.109 port 2121: Connection timed out
ssh: connect to host myserver.mydomain.com port 2121: Connection timed out
*由于明显的原因,主机、域、ip和端口发生了更改

需要考虑的事项:

  • 我的git服务器已启动并正在运行,我可以从任何其他服务器连接到它 使用相同命令的机器
  • 我的git服务器日志没有显示任何传入连接 来自gcloud
  • 我只使用应用程序引擎,我不想 配置计算引擎
  • 是否有人发现了相同的问题并愿意分享解决方案?

    至20、21、22、80、443、2375、2376、3306、8080、9600和50051

    更新(2018-9-19):此限制已被删除。现在应该可以在所有端口上从Cloud Shell建立传出连接