I got an .xinitrc
file with the following line:
# it will start my window manager
ssh-agent dwm
After that I got an ssh-agent
process, but environment variables like
$SSH_AGENT_PID
and
$SSH_AUTH_SOCK
does not exists when I start a terminal from dwm
. Any ideas why?
I wish there was only one ssh-agent
process. Each call to ssh-add
should connect to the agent that started dwm
.
man ssh-agent
. The agent can act as a wrapper to other programs and exports the right variables to them, no need for eval in that case. If you don't believe me, make sure you don't have an agent running and then runssh-agent bash
. You'll find that the bash session has a running agent. – cryptarch Jan 13 '23 at 03:21