...
Code Block | ||||
---|---|---|---|---|
| ||||
su example_user cd ~ mkdir -p ~/.ssh && sudo chmod -R 700 ~/.ssh/ && cd .ssh/ && vim authorized_keys |
Make the root account not accessible for direct login and make the server accessible only through ssh key
...
...
Code Block | ||||
---|---|---|---|---|
| ||||
su example_user cd ~ mkdir -p ~/.ssh && sudo chmod -R 700 ~/.ssh/ && cd .ssh/ && vim authorized_keys |
Make the root account not accessible for direct login and make the server accessible only through ssh key
...