You are not logged in.
Pages: 1
Hello, everyone!
I'm trying to get this combo set up, so far without success.
This is what I've tried so far by consulting the wiki:
- Adding
eval $(ssh-agent)to ~/.xinitrc . This isn't working and an
echo $SSH_AGENT_SOCK returns empty.
- I also tried adding the same snippet to ~/.xprofile, after reading the wiki on LightDM's X session wrapper. This ends up returning an empty $SSH_AGENT_SOCK too, inside gnome-terminal, therefore failing, but running
ps aux | grep sshshows me there's an (unusable ?) ssh-agent process running.
This is the behaviour I'm trying to get from my system:
1) I start a Cinnamon session by logging in from LightDM;
2) It spawns an ssh-agent instance for my user, valid while I'm logged in the same X session;
3) I input my password the first time it's necessary to authenticate by key-pair;
4) ssh-agent automatically remembers this authentication;
5) I can authenticate again, in any application or terminal inside the same X session, without inputting any passwords.
6) Whenever I log out, that particular ssh-agent instance gets terminated.
I get the feeling I'm missing something but can't pinpoint what. This sounds like a stupid oversight so I'm posting on Newbie Corner.
Thanks everyone for the help and the patience!
Last edited by Thiago H (2020-07-25 10:41:11)
Offline
See https://wiki.archlinux.org/index.php/SSH_keys#ssh-agent. That should take care of 1-5.
Offline
It worked! Thank you for the extra pair of eyes, I knew I was missing something!
For further reference: the systemd user service described in the wiki is what did it.
Thank you! ![]()
Offline
Pages: 1