解决
authorized_keys无法修改,是因为authorized_keys文件被锁定,需要对该文件进行解锁

查看加锁: lsattr .ssh/authorized_keys

chattr -i authorized_keys (对该文件进行解锁)

查看authorized_keys文件权限,如果权限比.ssh文件目录大,则更改authorized_keys文件权限

chmod 600 authorized_keys

此时已经可以修改authorized_keys

Last modification:December 16th, 2020 at 04:44 pm