[Linux] Putting the good permissions for a private SSH key
Published on 2022-07-26 • Modified on 2022-07-26
This snippet shows what permissions we must use for a private SSH key. This is the kind of thing I always forget! So, let's have it here, on my blog 🙂. It allows fixing the error: Permissions 0644 for id_rsa.pub are too open.
chmod 400 ~/.ssh/id_rsa
More on Stackoverflow Random snippet
Call to action
Did you like this post? You can help me back in several ways: (use the "reply" link on the right to comment or to contact me )
- Report any error/typo.
- Report something that could be improved.
- Like and repost!
- Follow me on Bluesky 🦋
- Subscribe to the RSS feed.
- Click on the More on Stackoverflow buttons to make me win "Announcer" badges 🏅.
Thank you for reading! And see you soon on Strangebuzz! 😉