On most systems the default private keys (~/.ssh/id_rsa
, ~/.ssh/id_dsa
and ~/.ssh/identity
) are automatically added to the SSH authentication agent. You shouldn't need to run ssh-add path/to/key
unless you override the file name when you generate a key.