我是参考的 https://help.github.com/articles/generating-ssh-keys 生成的key,添加到github上,测试,正常连接。
但是我把这个公钥复制到自己的服务器的/home/git/.ssh/authorized_keys
就怎么也连接不上,目前.ssh
目录权限是 600
,authorized_keys
文件权限也是 600
一直提示有没有权限,仓库是否存在,我能ssh远程连接 22
端口也应该是开了的。
这是什么原因呢?
巴扎黑2017-04-27 09:04:39
I think the poster has not read this help document: https://help.github.com/articles/using-ssh-over-the-https-port Bad file number is usually caused by this reason. Ps: If there is no config in your .ssh directory, create a new one and copy this text and save it.