From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Enlarging the question Was: Re: Does pclcvs support ssh protocol ? Date: Sun, 24 Feb 2008 18:42:54 +1100 Organization: Rapt Technologies Message-ID: <87wsou4x6p.fsf@lion.rapttech.com.au> References: <20080222.075409.183050664.devel@pollock-nageoire.net> <20080221231156.6ee15c74@reforged> <20080222.093951.48490765.devel@pollock-nageoire.net> <87r6f58i1q.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203842445 14554 80.91.229.12 (24 Feb 2008 08:40:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Feb 2008 08:40:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 24 09:41:09 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JTCQ0-0001Ai-3J for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Feb 2008 09:41:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTCPU-0003qQ-EW for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Feb 2008 03:40:36 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!sn-xt-sjc-05!sn-xt-sjc-09!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:O6NxWFKZSvFnlAfrsn6RZGPhOUY= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 91 Original-Xref: shelby.stanford.edu gnu.emacs.help:156442 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:51813 Archived-At: Xavier Maillard writes: > Pierre Lorenzon writes: > > > From: Mike Mattie > > 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 wrote: > >> > >> > From: Michael Hoffman > >> > 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