wishstudio / flinux

Foreign LINUX - Run unmodified Linux applications inside Windows.
GNU General Public License v3.0
3.58k stars 244 forks source link

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

Open flyskywhy opened 8 years ago

flyskywhy commented 8 years ago

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.

wishstudio commented 8 years ago

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

jalasem commented 3 years ago

run chmod 400 /root/.ssh/id_rsa

jalasem commented 3 years ago

400 will work

flyskywhy commented 3 years ago

@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 git@github.com:YourName/YourRepo.git, so how 400 will work?