”ssh: connect to host gmail.com port 22: Network is unreachable"的解决办法

今天终于配置好自己的github了。上次话了好多时间,遇到这个问题,搞不定。

jasonleaster@ubuntu:/Ad_Pro_in_Unix$ git push -u origin master

ssh: connect to host gmail.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.


其实问题是由于远端没有进行仓库的初始化。

只要执行

git --bare init

OK .... 

你可能感兴趣的:(”ssh: connect to host gmail.com port 22: Network is unreachable"的解决办法)