Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
running "ssh-add -D" as root failed nowadays
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Sun Oct 04, 2015 6:09 pm    Post subject: running "ssh-add -D" as root failed nowadays Reply with quote

I'm convinced that this worked in the past, but nowadays I do get :
Code:
t44 ~ # su - tfoerste -c "export DISPLAY=:0; ssh-add -D"
Could not open a connection to your authentication agent.
Any hints ?
Back to top
View user's profile Send private message
SpaceToast
n00b
n00b


Joined: 16 Oct 2015
Posts: 19

PostPosted: Mon Oct 19, 2015 6:07 am    Post subject: Reply with quote

"Could not open a connection to your authentication agent. "
This suggests that either ssh-agent is not running, or that your user cannot communicate with it.

However, I'm not sure what you're trying to achieve here ("that this worked in the past"). Here is what this will do:

1. Become user tfoerste and change into that user's login environment.
2. In that environment, tell all future X applications to use desktop :0 (default 1st).
3. Delete all identities from ssh-agent (note that this is not an X application).

So while your problem (the error you are getting) can be fairly easily solved by ensuring that ssh-agent is running:
Code:
eval $(ssh-agent -s)
, it would be useful to know specifically what you are trying to achieve, so that we can help you figure out a more efficient way to achieve it :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum