[英]ssh: connect to host git.ionicjs.com port 22: Connection timed out
I'm working on an Ionic application, I started by creating a new project via Ionic Dashboard. 我正在开发Ionic应用程序,首先通过Ionic Dashboard创建了一个新项目。 Later I connected my apllication using this command :
ionic start --pro-id my-id
. 后来,我使用以下命令连接了应用程序:
ionic start --pro-id my-id
。
But when I try to push my code up to the dashboard using the following command : git push ionic master
I Recieved this error : 但是,当我尝试使用以下命令将代码推送到仪表板时:
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.
I tried to use http protocol instead of ssh in the config file, following th steps below : 我尝试按照以下步骤在配置文件中使用http协议而不是ssh :
git config --local -e
url = git@git.ionicjs.com/usename/myproject.git
url = https://git.ionicjs.com/usename/myproject.git
But stil have this issue : fatal: unable to access 'https://git.ionicjs.com:username/myproject.git/': Port number ended with 'b'
但是仍然有这个问题:
fatal: unable to access 'https://git.ionicjs.com:username/myproject.git/': Port number ended with 'b'
Any idea to resolve this problem? 有解决这个问题的主意吗? Thank you.
谢谢。
The problem with ssh is that git.ionicjs.com
has 2 different IP addresses. ssh的问题在于
git.ionicjs.com
具有2个不同的IP地址。 One of them (35.162.243.99) has port 22 open and the other (35.162.243.97) doesn't. 其中一个(35.162.243.99)打开了端口22,而另一个(35.162.243.97)没有打开。 I recommend to report the problem to ionicjs.com.
我建议将问题报告给ionicjs.com。
The correct syntax for HTTP URL is https://git.ionicjs.com/username/myproject.git
, not https://git.ionicjs.com:username/myproject.git/
. HTTP URL的正确语法是
https://git.ionicjs.com/username/myproject.git
,而不是https://git.ionicjs.com:username/myproject.git/
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.