View previous topic :: View next topic |
Author |
Message |
toralf Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/10034462014367c4dfe33c1.gif)
Joined: 01 Feb 2004 Posts: 3943 Location: Hamburg
|
Posted: Sun Oct 04, 2015 6:09 pm Post subject: running "ssh-add -D" as root failed nowadays |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
SpaceToast n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 16 Oct 2015 Posts: 19
|
Posted: Mon Oct 19, 2015 6:07 am Post subject: |
|
|
"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 ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|