Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 May 2018 01:31:47 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        tech-lists <tech-lists@zyxst.net>, freebsd-questions@freebsd.org
Cc:        freebsd-stable@FreeBSD.org
Subject:   Re: problems with ssh-agent after running MATE desktop
Message-ID:  <5B070513.8090102@grosbein.net>
In-Reply-To: <0a5a4cfc-7872-41ae-4f51-a65fc2cb9986@zyxst.net>
References:  <0a5a4cfc-7872-41ae-4f51-a65fc2cb9986@zyxst.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5B070513.8090102>