ssh私钥权限过于开放导致无效

简介: ssh私钥权限过于开放导致无效

ssh私钥权限过于开放导致无效
git clone git@gitee.com:scclounee/am335x-linux.git
Cloning into 'am335x-linux'...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0664 for '/home/xxx/.ssh/id_ed25519' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
{spa.sekirei-nest.com]
{spa.youhesh.com]
{spa.nakakijibika.com]
{spa.olive-youca.com]
{spa.ihuacong.com]
Load key "/home/xxx/.ssh/id_ed25519": bad permissions
git@gitee.com: Permission denied (publickey).
fatal: Could not read from remote repository.

解决方法:

chmod 600 /home/xxx/.ssh/id_ed25519

相关文章
|
5月前
|
存储 安全 Linux
|
3月前
|
网络安全 开发工具 git
|
5月前
|
弹性计算 运维 Shell
基于key验证多主机ssh访问
【4月更文挑战第30天】
70 1
|
5月前
|
安全 Linux 网络安全
服务器设置 SSH 通过密钥登录
服务器设置 SSH 通过密钥登录
|
安全 Linux 网络安全
SSH远程连接 - 基于密钥验证
一、基于密钥的登录方式 二、基于密钥登陆的操作
|
Linux 网络安全 数据安全/隐私保护
|
网络安全 安全 开发工具
终端配置ssh秘钥登录
终端配置ssh秘钥登录