On Mon, 31 Mar 2008 23:04:13 +0200 Roland Winkler wrote: > Michael Albinus writes: > > D'accord. But Roland has the use case to run Emacs on a remote > > host. He even doesn't start ssh-agent there, which would do the > > job. > > Sorry for the confusion. Typically, I do something like > > ssh -t winkler@foo.org ssh-agent emacs > > So my remote session is only emacs under an ssh-agent. I would like > to be able to run ssh-add from within the remote emacs iff ssh-add > is needed because I want to establish a connection to yet some other > host(s). (Of course, locally I am using shh-agent and ssh-add, too. > Yet that helps me only for the ssh connections that I do starting > from localhost.) If I understand you correctly use agent forwarding. It's a sshd option. > Roland