ssh:连接到主机git.ionicjs.com端口22:连接超时

时间:2017-11-13 16:38:01

标签: git github ionic-framework ssh ionic3

我正在开发一个Ionic应用程序,我开始通过Ionic Dashboard创建一个新项目。后来我使用以下命令连接了我的应用程序:ionic start --pro-id my-id

但是当我尝试使用以下命令将代码推送到仪表板时:git push ionic master我收到了这个错误:

ssh: connect to host git.ionicjs.com port 22: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

我尝试在配置文件中使用 http 协议而不是 ssh ,按照以下步骤操作:

  1. git config --local -e
  2. url = git@git.ionicjs.com/usename/myproject.git
  3. url = https://git.ionicjs.com/usename/myproject.git
  4. 但是stil有这个问题:fatal: unable to access 'https://git.ionicjs.com:username/myproject.git/': Port number ended with 'b'

    有什么想法解决这个问题吗?谢谢。

1 个答案:

答案 0 :(得分:0)

  1. ssh的问题是git.ionicjs.com有2个不同的IP地址。其中一个(35.162.243.99)的端口22打开而另一个(35.162.243.97)没有。我建议将问题报告给ionicjs.com。

  2. HTTP网址的正确语法为https://git.ionicjs.com/username/myproject.git,而不是https://git.ionicjs.com:username/myproject.git/

相关问题