![](/img/trans.png)
[英]`ssh: connect to host ssh.dev.azure.com port 22: Connection timed out` error
[英]ssh: connect to host git.ionicjs.com port 22: Connection timed out
我正在開發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 :
git config --local -e
url = git@git.ionicjs.com/usename/myproject.git
url = https://git.ionicjs.com/usename/myproject.git
但是仍然有這個問題: fatal: unable to access 'https://git.ionicjs.com:username/myproject.git/': Port number ended with 'b'
有解決這個問題的主意嗎? 謝謝。
ssh的問題在於git.ionicjs.com
具有2個不同的IP地址。 其中一個(35.162.243.99)打開了端口22,而另一個(35.162.243.97)沒有打開。 我建議將問題報告給ionicjs.com。
HTTP URL的正確語法是https://git.ionicjs.com/username/myproject.git
,而不是https://git.ionicjs.com:username/myproject.git/
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.