[lkml]   [2002]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: ssh primer (was Re: pull vs push (was Re: [bk patch] Make cardbus compile in -pre4))
Jeff Garzik <> writes:

> For those with multiple peer shells and no X-parented ssh-agent, you
> will need to run ssh-agent ONCE, like so:
> ssh-agent > ~/tmp/ssh-agent.out
> and then for each shell, you need to run:
> eval `cat ~/tmp/ssh-agent.out`
> and then run the ssh-add command from above.

I keep the following in my .bashrc and use the `agent' command to
initialize the ssh-agent.

# Allow `agent' to start the ssh-agent usefully on all running
# bash instances. SIGQUIT was chosen because it is ignored by
# bash by default, even in non-interactive shells, so that a
# shell not trapping it by some chance won't be terminated.
if test -f ~/.ssh/agent; then
. ~/.ssh/agent
function agent {
killall -q ssh-agent
ssh-agent > ~/.ssh/agent
killall -QUIT bash >/dev/null 2>&1
ssh-add ~/.ssh/identity
ssh-add ~/.ssh/id_dsa
trap -- '. ~/.ssh/agent' SIGQUIT

"Be circumspect in your liaisons with women.
It is better to be seen at the opera with a man
than at mass with a woman."
--De Maintenon
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:24    [W:0.095 / U:0.028 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site