Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Permissions 0644 for 'id_rsa_bblc' are too open

Tags:

php

ssh

jenkins

I am running a job in jenkins. But when I create a build I get below error.

Permissions 0644 for 'id_rsa_bblc' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: id_rsa_bblc
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).

While googling for a solution I found that I will have to change file permission to 400 or 600. So I tried to build job again after changing permission (using both 400 and 600) but still there is no use, the error still remains.

Please help me resolve this issue.

like image 337
Ankita Dumbhare Avatar asked Sep 03 '25 17:09

Ankita Dumbhare


1 Answers

You need to restrict the access rights to your rsa key

 chmod 400 ~/path-to-your-rsa-key
like image 177
Shady Smaoui Avatar answered Sep 07 '25 17:09

Shady Smaoui