Permissions 0755 for '/data/user/lxb/.ssh/id_rsa' are too open.

传文件,提示秘钥文件太开放,打印如下报错:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Permissions 0755 for '/data/user/lxb/.ssh/id_rsa' are too open.

It is required that your private key files are NOT accessible by others.

This private key will be ignored.

Load key "/data/user/lxb/.ssh/id_rsa": bad permissions

lxb@10.10.10.10: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]

rsync error: unexplained error (code 255) at io.c(235) [Receiver=3.1.2]

上述打印内容在提示你,赋予私钥文件的权限过大。

解决:$sudo chmod -R 700 /data/user/lxb/.ssh/

结束。

上一篇:容器云平台No.6~企业级分布式存储Ceph~v14.2.10


下一篇:command line is too long. shorten command line for xxx的解决方法