linux security context

Create a file authorized_keys under /root, then move to .ssh, the file does not work

 

1. Modify the properties to solve:

View security information: ls -Z /root/.ssh

Setup: restorecon -R .ssh

 

2.1, turn off the security check solution:

var /etc/selinux/config

SELINUX=disabled

reboot

 

 

2.2 Temporary modification, no restart

 

getenforce View current settings

setenforce Enforcing | Permissive | 1 | 0 setting 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326468333&siteId=291194637