Skip to content

Instantly share code, notes, and snippets.

@wicky-andrian
Last active March 12, 2021 20:24
Show Gist options
  • Save wicky-andrian/06f7ff27a218570cdf82355df9ff7482 to your computer and use it in GitHub Desktop.
Save wicky-andrian/06f7ff27a218570cdf82355df9ff7482 to your computer and use it in GitHub Desktop.
SSH permissions 0644 for '/home/username/.ssh/id_rsa' are too open.
some problem if you have new system, try to deploy on github with old ssh, when you add ssh on terminal (command line) Ubuntu.
wicky@code: eval $(ssh-agent)
Agent pid 7xxx
wicky@code: ssh-add ~/.ssh/id_rsa  #note id_rsa only name not name.pub but only name
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '/home/wicky/.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.

you get error like "Permissions 0644 for '/home/username/.ssh/id_rsa' are too open."
its because from old system change with
$ cd  ~/.ssh/ chmod 600 id_rsa 

and try again to add ssh again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment