linux - git 配置多个ssh私钥时提示Bad owner or permissions on /root/.ssh/config?
本文介绍了linux - git 配置多个ssh私钥时提示Bad owner or permissions on /root/.ssh/config?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
我已经给~/.ssh/config chmod 600了
[root@localhost .ssh]# chmod 600 config
[root@localhost .ssh]# ssh -T git@github.com
Bad owner or permissions on /root/.ssh/config
解决方案
可以从下面几个地方去考虑:
- 本地的 config 文件
属主
或者权限
. - 远程主机的 config 文件
属主
或者权限
. - 先通过
ssh
去调试下, 如果ssh
没问题, 那就考虑其他原因
这篇关于linux - git 配置多个ssh私钥时提示Bad owner or permissions on /root/.ssh/config?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文