Re: [X2Go-User] Global ssh-agent

2015-12-02 Thread Orion Poplawski
On 12/01/2015 12:34 AM, Dmitry Bely wrote: Hi Orion, On Thu, Nov 26, 2015 at 2:11 AM, Orion Poplawski wrote: On 11/24/2015 05:10 AM, Dmitry Bely wrote: Hi, I would like to use ssh-agent globally for X session (Debian/MATE if it matters). X session starts it itself and when I login to X local

Re: [X2Go-User] Global ssh-agent

2015-11-30 Thread Dmitry Bely
Hi Orion, On Thu, Nov 26, 2015 at 2:11 AM, Orion Poplawski wrote: > On 11/24/2015 05:10 AM, Dmitry Bely wrote: >> Hi, >> >> I would like to use ssh-agent globally for X session (Debian/MATE if >> it matters). X session starts it itself and when I login to X locally >> it works as expected (SSH_AG

Re: [X2Go-User] Global ssh-agent

2015-11-25 Thread Orion Poplawski
On 11/24/2015 05:10 AM, Dmitry Bely wrote: > Hi, > > I would like to use ssh-agent globally for X session (Debian/MATE if > it matters). X session starts it itself and when I login to X locally > it works as expected (SSH_AGENT_PID and SSH_AUTH_SOCK environment > variables are set correctly). But

Re: [X2Go-User] Global ssh-agent

2015-11-25 Thread Dmitry Bely
Hi Dirk, >> keepass2 is started via >> Exec=keepass2 >> in keepass2.desktop file; probably /bin/sh is not involved and so >> SSH_AGENT_PID is not set. > > > in this case use a wrapper-script. > > --- 8< --- keepass.bash > #!/bin/bash > > source ~/.bashrc > keepass2 > --- >8 --- > > and starat Keep

Re: [X2Go-User] Global ssh-agent

2015-11-25 Thread Dirk Deimeke
On 2015-11-25 13:19, Dmitry Bely wrote: Hi Dmitry, keepass2 is started via Exec=keepass2 in keepass2.desktop file; probably /bin/sh is not involved and so SSH_AGENT_PID is not set. in this case use a wrapper-script. --- 8< --- keepass.bash #!/bin/bash source ~/.bashrc keepass2 --- >8 --- a

Re: [X2Go-User] Global ssh-agent

2015-11-25 Thread Dmitry Bely
Hi Dirk, >> This way it still does not work for GUI apps launched from the desktop >> environment (MATE in my case). I'm trying to add ssh keys via >> keepass2/keeagent (it doesn't see ssh-agent) and then use them in >> other GUI apps (Eclipse etc.) > > strange ... it works for me. keepass2 is st

Re: [X2Go-User] Global ssh-agent

2015-11-25 Thread Dirk Deimeke
On 2015-11-25 10:56, Dmitry Bely wrote: Hi Dmitry, This way it still does not work for GUI apps launched from the desktop environment (MATE in my case). I'm trying to add ssh keys via keepass2/keeagent (it doesn't see ssh-agent) and then use them in other GUI apps (Eclipse etc.) strange ... i

Re: [X2Go-User] Global ssh-agent

2015-11-25 Thread Dmitry Bely
Hi Dirk, >>> the PID is set via eval $(ssh-agent). >> >> Sure. The problem is that when I do "eval `ssh-agent" in ~/.bashrc, it >> sets SSH_AGENT_PID but then it's unset somewhere (where and why?). >> This happens only under x2go, SPICE session works as expected (but >> SPICE is unusable for other

Re: [X2Go-User] Global ssh-agent

2015-11-25 Thread Dirk Deimeke
On 2015-11-25 09:45, Dmitry Bely wrote: Hi Dmitry, the PID is set via eval $(ssh-agent). Sure. The problem is that when I do "eval `ssh-agent" in ~/.bashrc, it sets SSH_AGENT_PID but then it's unset somewhere (where and why?). This happens only under x2go, SPICE session works as expected (but

Re: [X2Go-User] Global ssh-agent

2015-11-25 Thread Dmitry Bely
Hi Dirk, >> This way SSH_AUTH_SOCK is correct but SSH_AGENT_PID is surprisingly >> unset somethere. Any idea how to fix that? > > > the PID is set via eval $(ssh-agent). Sure. The problem is that when I do "eval `ssh-agent" in ~/.bashrc, it sets SSH_AGENT_PID but then it's unset somewhere (where

Re: [X2Go-User] Global ssh-agent

2015-11-24 Thread Dirk Deimeke
On 2015-11-24 13:10, Dmitry Bely wrote: Hi Dmitry, This way SSH_AUTH_SOCK is correct but SSH_AGENT_PID is surprisingly unset somethere. Any idea how to fix that? the PID is set via eval $(ssh-agent). This is what I do: [[ -s $HOME/.ssh-agent ]] || ssh-agent -s > $HOME/.ssh-agent source $HOM

[X2Go-User] Global ssh-agent

2015-11-24 Thread Dmitry Bely
Hi, I would like to use ssh-agent globally for X session (Debian/MATE if it matters). X session starts it itself and when I login to X locally it works as expected (SSH_AGENT_PID and SSH_AUTH_SOCK environment variables are set correctly). But if I connect to the host via x2go, strange things happe