ssh-agent seems to be "split" in different terminal programs (Ubuntu-MATE 24.04 LTS)
Adam Funk
a24061 at ducksburg.com
Wed Dec 4 14:58:35 UTC 2024
I did a fresh installation of Ubuntu-MATE 24.04 LTS on a laptop last
week and copied most of my home directory over from another one
(including some but not all of the dot-files and dot-directories).
I'm using the mate-terminal and terminator for different things but
the ssh-agent is not being shared between them; i.e., if I use ssh-add
in either one, the keys are not unlocked in the other one, so I have
to ssh-add in an instance of each terminal for everything to work. (If
I close all the open terminals of either kind, the keys are still
available when I launch a new one.)
I think it is probably caused by this discrepancy:
* in mate-terminal:
$ env |grep -i ssh
SSH_AUTH_SOCK=/tmp/ssh-H1CUqkimJczJ/agent.1284792
SSH_AGENT_PID=1284793
* in terminator:
$ env |grep -i ssh
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
SSH_AGENT_PID=1284793
But I don't know what has caused that, or how to fix it so they both
use the same SOCK. Any suggestions?
I noticed these two lines in my ~/.profile
# TEST 2021-08-25
eval "$(ssh-agent)"
but they were in it on my previous laptop and I don't recall ever
having this problem.
Thanks!
More information about the ubuntu-users
mailing list