簡體   English   中英

ssh:連接到主機git.ionicjs.com端口22:連接超時

[英]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

  1. git config --local -e
  2. url = git@git.ionicjs.com/usename/myproject.git
  3. url = https://git.ionicjs.com/usename/myproject.git

但是仍然有這個問題: fatal: unable to access 'https://git.ionicjs.com:username/myproject.git/': Port number ended with 'b'

有解決這個問題的主意嗎? 謝謝。

  1. ssh的問題在於git.ionicjs.com具有2個不同的IP地址。 其中一個(35.162.243.99)打開了端口22,而另一個(35.162.243.97)沒有打開。 我建議將問題報告給ionicjs.com。

  2. HTTP URL的正確語法是https://git.ionicjs.com/username/myproject.git ,而不是https://git.ionicjs.com:username/myproject.git/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM