problems with ssh-agent after running MATE desktop

Eugene Grosbein eugen at
Thu May 24 18:32:06 UTC 2018

24.05.2018 21:41, tech-lists wrote:

> If I then run 'agent', prompts me for the keyphrase, then it works normally. But I have to repeat this in every single opened terminal.

You may like security/keychain port (or package). I use it because of its universal way to run ssh-agent:
no matter what DE or window manager you use and how do you start it or not at all, working in ssh or console only.

One just adds single line to its login shell script, for bash it is ~/.bash_login:

eval `keychain --eval $HOME/.ssh/id_rsa $HOME/.ssh/id_ed25519 $HOME/.ssh/id_dsa`

First time after machine reboots (sic!) it asks you for passphrase (if needed)
when you log in starting interactive login shell (no matter which way: ssh/X/console) and that's all.
It won't ask you again until next reboot, or ssh-agent reset by some other way.

You may even disconnect completely and it reuses started ssh-agent next time you log in again.

More information about the freebsd-questions mailing list