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 and why?). This happens only under x2go, SPICE session works as expected (but SPICE is unusable for other reasons) > This is what I do: > > [[ -s $HOME/.ssh-agent ]] || ssh-agent -s > $HOME/.ssh-agent > source $HOME/.ssh-agent 2>&1 >/dev/null > > if [[ -z "$SSH_AGENT_PID" ]] || ! ps -fp "$SSH_AGENT_PID" | grep -q > ssh-agent; then > ssh-agent -s > $HOME/.ssh-agent 2>&1 >/dev/null > source $HOME/.ssh-agent 2>&1 >/dev/null > fi > > if ! ssh-add -l | grep -q id_dsa; then > ssh-add $HOME/.ssh/id_dsa > fi Where do you put this code? Do you have the only instance of ssh-agent per X session? - Dmitry Bely _______________________________________________ x2go-user mailing list [email protected] http://lists.x2go.org/listinfo/x2go-user
