Re: ssh-agent and gnome?
- From: Troy Carter <tcarter Princeton EDU>
- To: gnome-list gnome org
- Cc: Matt Stockdale <mstockda dti net>
- Subject: Re: ssh-agent and gnome?
- Date: Mon, 21 Aug 2000 12:11:17 -0400
> has anyone had any luck using ssh-agent (from openssh) to start their gnome-session? I've tried putting it in my .gnomerc (I start gnome from GDM) as "ssh-agent gnome-session" but it doesn't start ssh-agent (or at least, it fails to stay started..) and certainly doesn't pass the environment vars to everything. as it stands, I hacked it to work by having it echo the correct environment vars into a file that then gets sourced by my .tcshrc, but of course that only works if I want to ssh from a tcsh.
>
> TIA,
> Matt
>
You don't have to change system wide scripts like Xsession or alias
startx, just try the following in your .gnomerc (this is my .gnomerc):
#! /bin/sh
#
. $HOME/.env
eval `ssh-agent -s`
ssh-add < /dev/null
gnome-session
eval `ssh-agent -k`
-Troy
--
Troy Carter
tcarter@princeton.edu
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]