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/

结束。

posted @ 2021-11-17 09:52  巴州夜雨  阅读(200)  评论(0编辑  收藏  举报