From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: Enlarging the question Was: Re: Does pclcvs support ssh protocol ?
Date: Sun, 24 Feb 2008 18:42:54 +1100 [thread overview]
Message-ID: <87wsou4x6p.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: mailman.7811.1203734034.18990.help-gnu-emacs@gnu.org
Xavier Maillard <xma@gnu.org> writes:
> Pierre Lorenzon <devel@pollock-nageoire.net> writes:
>
> > From: Mike Mattie <codermattie@gmail.com>
> > Subject: Re: Does pclcvs support ssh protocol ?
> > Date: Thu, 21 Feb 2008 23:11:56 -0800
> >
> >> On Fri, 22 Feb 2008 07:54:09 +0100 (CET)
> >> Pierre Lorenzon <devel@pollock-nageoire.net> wrote:
> >>
> >> > From: Michael Hoffman <b3i4old02@sneakemail.com>
> >> > Subject: Re: Does pclcvs support ssh protocol ?
> >> > Date: Thu, 21 Feb 2008 20:31:54 +0000
> >> >
> >> > > Pierre Lorenzon wrote:
> >> > >
> >> > > > Notice that I still do not have the answer to my question :
> >> > > > "yes or not is this password transaction implemented in
> >> > > > pcl-cvs like in tramp ?"
> >> > >
> >> > > Now the question has changed.
> >> >
> >> >
> >> > Not really !
> >> >
> >> > Pierre
> >> >
> >> >
> >> >
> >>
> >> The answer is clearly ssh-agent. There are a large number of security issues regarding keys,
> >> memory locking, timed expiration, secure entry, etc. Emacs doesn't need to jump through all these
> >> hoops when ssh-agent,pin-entry,gpg do this sort of thing
> >> correctly with a robust code-base.
> >
> > Yes ! do you mean that tramp for instance uses ssh-agent ? It
> > might be ; I didn't examine the code to answer this question
> > ...
>
> Yes tramp use ssh-agent, if ssh-agent is started; if not you are prompted for a
> passphrase (you have to create keys and use keys system, not password).
> I don't use cvs for my files, i use svn.
> With svn if you do your checkout throught ssh, and ssh-agent+keys system is
> enabled, when you commit the change in your file, svn use automaticly ssh with
> tramp.
>
> Do you have any good tuto to set this up ? I am one of these lazy
> people who'd rather type their password every two minutes ;)
> Ssh-agent could save me some precious time. Lat time I read about
> this, it was a pain (for me) to understand.
>
> AFAIK, depending on how one is starting GNU Emacs, the setup
> changes. I am mostly working from the linux console, GNU Emacs is
> launched through a screen server session which I am connecting
> with the help of emacsclient.
>
> I even have a system account which default login shell is
> /usr/bin/emacs thus I do not see how ssh-agent could be setup in
> this case.
>
> Regards
>
> Xavier
> --
> http://www.gnu.org
> http://www.april.org
> http://www.lolica.org
>
All you need to do to use ssh-agent is ensure that it is started in a
parent process of any sub-processes yo want to use or have the benefit
of the agent in. for example, on Debian systems, this is done as part of
the standard session setup. All I use to do is have a call to
ask-password in my xsession init script. However, if your using gnome
and seahorse, you don't even need to do that anymore.
If you have /usr/bin/emacs as your login shell and your only running
under the console (not X), then all you would have to do is replace that
with a shell script that starts ssh-agent and then possibly call
askpassword and then start emacs.
Its really not that difficult or complex - just remember ssh-agent has
to be run in a parent process of anything you want that should be able
to take advantage of its facilities.
Tim
--
tcross (at) rapttech dot com dot au
next prev parent reply other threads:[~2008-02-24 7:42 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-21 5:36 Does pclcvs support ssh protocol ? Pierre Lorenzon
2008-02-21 11:38 ` Michael Hoffman
2008-02-21 16:02 ` Pierre Lorenzon
2008-02-21 16:15 ` Michael Albinus
2008-02-21 16:21 ` Michael Hoffman
2008-02-21 20:15 ` Pierre Lorenzon
2008-02-21 20:31 ` Michael Hoffman
2008-02-22 6:54 ` Pierre Lorenzon
2008-02-22 7:11 ` Mike Mattie
2008-02-22 8:39 ` Enlarging the question Was: " Pierre Lorenzon
2008-02-22 9:19 ` Thierry Volpiatto
2008-02-23 2:00 ` Xavier Maillard
2008-02-23 2:00 ` Xavier Maillard
[not found] ` <mailman.7811.1203734034.18990.help-gnu-emacs@gnu.org>
2008-02-24 7:42 ` Tim X [this message]
2008-03-19 1:00 ` Xavier Maillard
[not found] ` <mailman.7780.1203672972.18990.help-gnu-emacs@gnu.org>
2008-02-23 1:29 ` Tim X
2008-02-23 6:34 ` Stefan Monnier
[not found] ` <mailman.7778.1203669624.18990.help-gnu-emacs@gnu.org>
2008-02-23 1:21 ` Tim X
[not found] ` <mailman.7737.1203593911.18990.help-gnu-emacs@gnu.org>
2008-02-22 1:19 ` Tim X
2008-02-22 2:00 ` Xavier Maillard
2008-02-22 7:16 ` Pierre Lorenzon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wsou4x6p.fsf@lion.rapttech.com.au \
--to=timx@nospam.dev.null \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.