BE/Linux

[ LINUX ] chmod 파일 권한 설정

HEON.D 2024. 6. 11. 18:27

현상

Permissions 0777 for '/Users/username/.ssh/id_rsa' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.

 

Read Write

chmod 600 ~/.ssh/id_rsa

 

Read Only

chmod 400 ~/.ssh/id_rsa

 

https://stackoverflow.com/questions/9270734/ssh-permissions-are-too-open

 

ssh "permissions are too open"

I get the following error from ssh: Permissions 0777 for '/Users/username/.ssh/id_rsa' are too open. It is recommended that your private key files are NOT accessible by others. This private key wil...

stackoverflow.com