There are too many permissions for ssh.
Run command: chmod 600 <keys-files>
ssh-agent
is that what the program outputs, some borne or csh shell commands, needs to be run. It may look like ssh-agent has set some variables for you, but it has in fact done no such thing. If you call ssh-add
without processing ssh-agent
’s
output, it will complain it is unable to open a connection to your
authentication agent. The most straightforward way to run ssh-agent on
the command line is as follows: eval `ssh-agent`
. After doing this, calls to ssh-add
should succeed without error.