flinux icon indicating copy to clipboard operation
flinux copied to clipboard

Permissions 0755 for '/root/.ssh/id_rsa' are too open

Open flyskywhy opened this issue 9 years ago • 4 comments

When I git clone any repository from github.com in flinux after pacman -S git openssh, the ssh will says:

Permissions 0755 for '/root/.ssh/id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/root/.ssh/id_rsa": bad permissions

Then the git clone is aborted. And it's useless to chmod 600 /root/.ssh/id_rsa.

flyskywhy avatar Jan 10 '16 07:01 flyskywhy

Currently Linux permissions are no-ops in flinux so they won't work at all.

wishstudio avatar Jan 13 '16 05:01 wishstudio

run chmod 400 /root/.ssh/id_rsa

jalasem avatar Dec 24 '20 00:12 jalasem

400 will work

jalasem avatar Dec 24 '20 00:12 jalasem

@jalasem , after chmod 400 /root/.ssh/id_rsa , then ls -l /root/.ssh/id_rsa, it's still rwxr-xr-x, then still Permissions 0755 for '/root/.ssh/id_rsa' are too open when git clone [email protected]:YourName/YourRepo.git, so how 400 will work?

flyskywhy avatar Apr 07 '21 05:04 flyskywhy