Hands-on task
This task is step 1 of the course “Linux server security”
Fix private key permissions
Someone left the private key /root/.ssh/id_rsa with 644 permissions — anyone can read it. Bring the permissions to a secure 600 (owner only).
Reference:chmod
What you'll practise:
- chmod
- file permissions
- ssh keys
- octal mode