[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