host gitub.com port 22: Connection refused
fatal: Could not read from remote repository.
1,解决ssh connect to host github.com port 22 connection timed out
[root@linuxea-com ~]# vim ~/.ssh/config
Host github.com
User xxx@163.com (你注册github时的邮箱,这里使用注册的用户名也行)
Hostname ssh.github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Port 443
2,mac提示ssh: connect to host localhost port 22: Connection refused
解决方法:
打开系统偏好设置 —— 共享,选中远程登录:
3,加端口链接
[root@linuxea-com ~]# git clone ssh://git@mydomain.com:[port]/gitolite-admin
如:[root@linuxea-com ~]# git clone ssh://git@github.con:443/dt1k23eji/L21ao_3OS.git
评论