1. 程式人生 > >ssh: connect to host gitlab.alpha.com port 22: Network is unreachable

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

遇到 不能 add bar ddr repo tla clone ace

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

git clone [email protected]: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

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