A Linux technician is attempting to establish a remote administration session using a custom private key stored at `~/.ssh/id_rsa`. Upon executing the authentication command `ssh -i ~/.ssh/id_rsa [email protected]`, the terminal rejects the key and terminates the connection, displaying a warning that the private key file permissions of `0777` are too open and unprotected. Which of the following commands must the technician execute to assign the proper restrictive permissions so that SSH accepts the key file?
- chmod 600 ~/.ssh/id_rsaCevap
- Bchmod 755 ~/.ssh/id_rsa
- Cchown 600 ~/.ssh/id_rsa
- Dchmod +x ~/.ssh/id_rsa
Cevap
The technician must run 'chmod 600 ~/.ssh/id_rsa' to grant read and write permissions exclusively to the file owner.
SSH clients enforce strict file mode checks on private key files to protect cryptographic credentials. The command 'chmod 600 ~/.ssh/id_rsa' grants read (4) and write (2) privileges solely to the file owner, while setting group and world permissions to 0. This removes all external access and satisfies SSH security validation.
Adım Adım Çözüm
Anahtar Kavram
Linux file permission management and SSH client identity security standards
Tahmini Süre:1m 30s