ssh: connect to host gitlab.alpha.com port 22: Network is unreachable


在這里只說明我遇到的問題和解決方法,可能並不能解決你遇到的問題:

git clone git@gitlab.alpha.com:ipcam/ambarella.git
Cloning into 'ambarella'...
ssh: connect to host gitlab.alpha.com port 22: Network is unreachable
fatal: Could not read from remote repository.

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

1、檢查網絡是否可以ping 通

  ping xxx.xxx.xxx.xxx

2、查看/etc/network/interfaces

  address 一欄和要下載的code server是否在同一網段

3、不在同一網段添加路由
  sudo route add default gw xxx.xxx.xxx.xxx


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM