flinux
flinux copied to clipboard
Permissions 0755 for '/root/.ssh/id_rsa' are too open
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.
Currently Linux permissions are no-ops in flinux so they won't work at all.
run chmod 400 /root/.ssh/id_rsa
400 will work
@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?