When using ssh git prompt "Load key" /home/devid/.ssh/id_rsa ": bad permissions" solution

Today on in the windows Linux virtual machine system .sshfolder copied directly into it, and test the connectivity github

ssh -T [email protected]

But tips

devid@Linux ~/workspace/blog_source $ ssh -T [email protected]
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0666 for '/home/devid/.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 "/home/devid/.ssh/id_rsa": bad permissions
Permission denied (publickey).

Figure

 

Paste_Image.png

This problem is due to the question of powers, it is necessary to set file permissions:

chmod 600 *



Author: Devid
link: https: //www.jianshu.com/p/6ea77af2fd5b
Source: Jane books
are copyrighted by the author. Commercial reprint please contact the author authorized, non-commercial reprint please indicate the source.

Published 36 original articles · won praise 162 · views 620 000 +

Guess you like

Origin blog.csdn.net/qq_19004627/article/details/103417673