linux - git 配置多个ssh私钥时提示Bad owner or permissions on /root/.ssh/config?

查看:2118
本文介绍了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

解决方案

可以从下面几个地方去考虑:

  1. 本地的 config 文件属主 或者 权限.
  2. 远程主机的 config 文件属主 或者 权限.
  3. 先通过 ssh 去调试下, 如果ssh没问题, 那就考虑其他原因

这篇关于linux - git 配置多个ssh私钥时提示Bad owner or permissions on /root/.ssh/config?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆