首页 > Web开发 > 详细

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

时间:2019-03-04 17:54:37      阅读:681      评论:0      收藏:0      [点我收藏+]

在这里只说明我遇到的问题和解决方法,可能并不能解决你遇到的问题:

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

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

原文:https://www.cnblogs.com/Malphite/p/10471694.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!