CentOS 7.3非root用户执行git clone时卡在正克隆到'XXXXXX'

$ git clone git@github.com:XXX/XXXXXX.git 正克隆到 'XXXXXX'... ssh: connect to host github.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.

错误:到github.com:22连接超时

原因:用22端口无法使

解决方法:

CentOS 7.3非root用户配置ssh免密码登陆 CentOS 7.3执行git clone时卡在正克隆到'XXXXXX'