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

Revision history [back]

click to hide/show revision 1
initial version

posted 2019-08-12 22:40:00 +0200

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

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.

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

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.