确认将 SSH 权限应用于公钥和私钥文件。 关于此任务 过程 通过运行以下命令来检查 SSH 公钥文件:ls -l /etc/ssh/*key.pub 确认所有者是 root,组所有者是 root,并且文件权限设置为 0644 (-rw-r--r--)。 通过运行以下命令来修复任何问题。 chown root /etc/ssh/*key.pub chgrp root /etc/ssh/*key.pub chmod 644 /etc/ssh/*key.pub 通过运行以下命令来检查 SSH 私钥文件:ls -l /etc/ssh/*key 通过运行以下命令来修复任何问题。 chown root /etc/ssh/*key chgrp root /etc/ssh/*key chmod 644 /etc/ssh/*key 父主题: 确认安全 Shell 密钥文件权限