自己搭建git在授权这块出了点问题,请教下大家
迷茫
迷茫 2017-04-27 09:02:39
0
1
577

我是参考的 https://help.github.com/articles/generating-ssh-keys 生成的key,添加到github上,测试,正常连接。

但是我把这个公钥复制到自己的服务器的/home/git/.ssh/authorized_keys就怎么也连接不上,目前.ssh目录权限是 600authorized_keys文件权限也是 600

一直提示有没有权限,仓库是否存在,我能ssh远程连接 22 端口也应该是开了的。

这是什么原因呢?

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(1)
巴扎黑

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template