(SOLVED) Re: Xsession.d ssh-agent

2017-11-25 Thread Beco
On 25 November 2017 at 17:07, Ulf Volmer  wrote:

> On 25.11.2017 20:27, Beco wrote:
> > I've changed the line to:
> >
> > SSHAGENTARGS=-st36000
> >
> > removing spaces and quotes, in hope it would get it.
> >
> > Still no solution.
>
> interesting. i have tried another way and it works for me:
>
> SSHAGENTARGS="-t 1h"
>
> ulf@deb9-desktop:~$ ps -ef|grep [s]sh-agent
> ulf   4307  4221  0 21:04 ?00:00:00 /usr/bin/ssh-agent -t 1h
> startxfce4
>
> -s is the default, so i guess you can ignore this option.
>
> BTW: you have replied to me personally. normally you should answer to
> the mailing list.
>
> best regards
> Ulf
>


Hi Ulf, hi list,

Sorry about the "reply-to-all" that I forgot. Now it goes to all.

So, I found this answer here:

https://unix.stackexchange.com/questions/122511/configuring-the-default-
timeout-for-the-ssh-agent

(in the end of the text of the accepted answer)

and it says to do exactly as your second suggestion.


SOLUTION: These options works:

SSHAGENTARGS="-t 1h"
SSHAGENTARGS="-t 3600"



BUG: These causes a strange boot as KDE not initializing:

SSHAGENTARGS="-s -t 3600"
SSHAGENTARGS=-st3600

Thanks all, specially Ulf.

Beco.



-- 
Dr Beco
A.I. researcher

"I know you think you understand what you thought I said but I'm not sure
you realize that what you heard is not what I meant" -- Alan Greenspan

GPG Key: https://pgp.mit.edu/pks/lookup?op=vindex=0x5A107A425102382A
Creation date: pgp.mit.edu ID as of 2014-11-09


Re: Xsession.d ssh-agent

2017-11-25 Thread Ulf Volmer
On 25.11.2017 19:19, Beco wrote:

> Does anyone knows why KDE won't start if I change this file...

> $ head -n8 /etc/X11/Xsession.d/90x11-common_ssh-agentĀ 

> SSHAGENTARGS="-s -t 36000"

remove the quotes. at the moment ssh-agent got only one (long) argument.
You will find the syntax error in ~/.xsession-errors

best regards
Ulf



Xsession.d ssh-agent

2017-11-25 Thread Beco
Dear users,

Does anyone knows why KDE won't start if I change this file...


```Original
$ head -n8 /etc/X11/Xsession.d/90x11-common_ssh-agent

# $Id: 90x11-common_ssh-agent 305 2005-07-03 18:51:43Z dnusinow $

# This file is sourced by Xsession(5), not executed.

STARTSSH=
SSHAGENT=/usr/bin/ssh-agent
SSHAGENTARGS=

```

...line SSHAGENTARGS=

to simple add this arguments:

SSHAGENTARGS="-s -t 36000"

(10h for identities lifetime)

It (KDE) just freezes in a blank screen during boot. Not even the mouse
cursor comes up. There it stays...

Maybe that is not the place to add such arguments?

Thanks,

Beco





-- 
Dr Beco
A.I. researcher

"I know you think you understand what you thought I said but I'm not sure
you realize that what you heard is not what I meant" -- Alan Greenspan

GPG Key: https://pgp.mit.edu/pks/lookup?op=vindex=0x5A107A425102382A
Creation date: pgp.mit.edu ID as of 2014-11-09