From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: emacs 22 + tramp 2.0.55: password caching problem/question. Date: Wed, 26 Mar 2008 15:04:59 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1206540399 10171 80.91.229.12 (26 Mar 2008 14:06:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Mar 2008 14:06:39 +0000 (UTC) Cc: emacs mailing list To: Michal Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 26 15:07:00 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 1JeWGA-0002r7-J5 for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Mar 2008 15:05:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JeWFY-0004in-Mt for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Mar 2008 10:05:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JeWEa-0003tG-TA for help-gnu-emacs@gnu.org; Wed, 26 Mar 2008 10:04:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JeWEY-0003rz-UH for help-gnu-emacs@gnu.org; Wed, 26 Mar 2008 10:04:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JeWEY-0003rJ-Hn for help-gnu-emacs@gnu.org; Wed, 26 Mar 2008 10:04:06 -0400 Original-Received: from mailrelay2.alcatel.de ([194.113.59.96]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JeWEY-0007V2-2D for help-gnu-emacs@gnu.org; Wed, 26 Mar 2008 10:04:06 -0400 Original-Received: from slbhab.alcatel.de (slbhab.bln.sel.alcatel.de [149.204.63.218]) by mailrelay2.alcatel.de (8.13.8/8.13.8/ICT) with ESMTP id m2QE3pSX005122; Wed, 26 Mar 2008 15:03:51 +0100 In-Reply-To: (rabbit50@tenbit.pl's message of "Wed, 26 Mar 2008 13:56:02 +0100") User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux) X-Scanned-By: MIMEDefang 2.57 on 149.204.45.73 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 2) 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:52704 Archived-At: Michal writes: > Hallo Group Members Hi, > in my ~/.emacs I set: > > (setq password-cache-expiry nil) > > I visit remote folder with: > /scp:root@10.102.12.89:/etc > > then emacs asks for password. > > Since then everytime, when I visit remote directories I do not have to reenter password, but when I try to visit any remote regular file, it ALWAYS asks me for password. That is OK. Tramp keeps a permanent ssh connection for retrieving information about files. So you have to enter the password only once. For copying a file, it opens a new subprocess for the respective scp command, that's why you are asked about the pasword again. > Also from "TRAMP version 2.0.55 User Manual" info manual I can read: > > Implementation Note: password caching is based on the package > password.el in No Gnus. For the time being, it is activated only when > this package is seen in the `load-path' while loading TRAMP. It will > be activated mandatory once No Gnus has found its way into GNU Emacs. > > but I do not have password.el* file in my system. This happened now with Emacs 23 (the development version of Emacs). The file is renamed to password-cache.el. > C-h v gnus-version: > gnus-version is a variable defined in `gnus.el'. > Its value is "Gnus v5.11" No idea whether this Gnus version carries password.el. > Both gnus and tramp packages used by me are ones provided with emacs 22. > > Did You experience such problems? I would recommend you ssh-agent. If it is running, you need to enter the passphrase of your local identity only once. > regards, > Michal Best regards, Michael.