We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

Cannot Add SSH Keys with `ssh-add` When Using SSH Agent [answered]

asked 2019-08-12 22:40:00 +0300

jimjamz gravatar image

updated 2019-08-12 22:45:19 +0300

Using the Sailfish terminal, I am able to invoke the SSH Agent using ssh-agent:

SSH_AUTH_SOCK=/tmp/ssh-FXXc11XsXeXX/agent.30153; export SSH_AUTH_SOCK; SSH_AGENT_PID=30154; export SSH_AGENT_PID; echo Agent pid 30154;

However, I am not able to add my SSH key using ssh-add:

Could not open a connection to your authentication agent.

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by jimjamz
close date 2019-08-12 22:48:05.668265

1 Answer

Sort by » oldest newest most voted
1

answered 2019-08-12 22:43:32 +0300

jimjamz gravatar image

Simply calling ssh-agent does not start the SSH agent.

The following will start the SSH agent:

eval `ssh-agent -s`

ssh-add can then be used to add SSH keys to the agent.

edit flag offensive delete publish link more

Question tools

Follow
3 followers

Stats

Asked: 2019-08-12 22:40:00 +0300

Seen: 170 times

Last updated: Aug 12 '19