Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jul 2021 17:31:43 -0400
From:      Kurt Hackenberg <kh@panix.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: how to load ssh-agent into x11/sddm
Message-ID:  <fa691568-6e7a-cc3e-149e-eaf7834e9a99@panix.com>
In-Reply-To: <YO8Z0Vb0puhNtPbq@ceres.zyxst.net>
References:  <YO8Z0Vb0puhNtPbq@ceres.zyxst.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2021/07/14 13:07, tech-lists wrote:

> Before now, I'd start x11/kde5 from the console with xinit. Before
> starting with xinit, I'd run ssh-agent. The purpose of doing this was to
> have my ssh agent loaded in any subsequent terminal session after kde
> loaded.
> 
> now with x11/sddm the (sddm) greeter comes up before I can grab the 
> console and load ssh-agent.
> 
> What I'd like to know is, is it possible to load ssh-agent once either
> before, or within, the sddm greeter so that previous ssh-agent behaviour 
> is restored?


I've never used ssh-agent, just read the man page, not sure I fully 
understand it, but...

Xinit and display managers run one executable supplied by the user, 
which becomes a process, runs other processes, waits for them to exit, 
then exits itself, then the display manager or xinit shuts everything 
down. Usually that one executable is a shell script -- .xinitrc, 
.xsession, whatever.

Looks like the idea is that ssh-agent becomes that one process, sets up 
some environment variables, and then runs some other executable, which I 
guess would be the original one process -- .xinitrc or .xsession. So you 
wouldn't have to run ssh-agent by hand, just configure sddm to run it 
and have it run your .xinitrc.

How's that sound?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fa691568-6e7a-cc3e-149e-eaf7834e9a99>