Today I learned: SSH permissions on Linux and ssh-agent

To ensure proper SSH functionality it’s necessary to setup proper permissions. The .ssh directory in home must be 700. While authorized_keys and private keys should be 600. Public keys should be 644.

To start ssh-agent you must execute:

eval $(ssh-agent -s)

To add a key to the agent use:

ssh-add path/to/key.

Leave a comment