From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.help Subject: Re: TRAMP and scp Date: Sun, 19 Oct 2003 16:58:46 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <86brsdi89l.fsf@slowfox.dyndns.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1066575774 26938 80.91.224.253 (19 Oct 2003 15:02:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 19 Oct 2003 15:02:54 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 19 17:02:52 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ABF52-0005l1-00 for ; Sun, 19 Oct 2003 17:02:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ABF4s-0000B1-4R for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Oct 2003 11:02:42 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ABF3Z-000878-7i for help-gnu-emacs@gnu.org; Sun, 19 Oct 2003 11:01:21 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ABF2x-0007oa-4N for help-gnu-emacs@gnu.org; Sun, 19 Oct 2003 11:01:14 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ABF17-0007Lx-0I for help-gnu-emacs@gnu.org; Sun, 19 Oct 2003 10:58:49 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1ABF16-00065k-00 for ; Sun, 19 Oct 2003 16:58:48 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ABF15-00065c-00 for ; Sun, 19 Oct 2003 16:58:47 +0200 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1ABF15-0006tq-00 for ; Sun, 19 Oct 2003 16:58:47 +0200 Original-Lines: 40 Original-X-Complaints-To: usenet@sea.gmane.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (berkeley-unix) Cancel-Lock: sha1:d1c8DmigcEsGxoHVkXXtMOBe1mU= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13343 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13343 Michael Powe writes: > Out of band method `scp' not applicable for remote shell asking for > a password It seems I failed to describe this correctly. Here is how Tramp works: When you invoke something that invokes Tramp, Tramp first opens a shell connection to the remote host. This shell is used for filename completion and suchlike. For this shell connection, Tramp knows how to deal with password prompts. If you are using an out-of-band method, then on actually transferring a file, Tramp will open another connection to the remote host, using scp in your example. For this connection, Tramp does NOT support password prompts. So an easy workaround is to choose an inline method, such as ssh. (It will use uuencode or mimencode to transfer the file contents through the shell connection.) It would not be too difficult to support password prompts for scp invocations. But then Tramp would ask you on every I/O operation, such as C-x C-f or C-x C-s. Or autosave, for that matter! So to make Tramp support scp password prompts in a meaningful manner, it would have to cache the password. I was afraid of the security issues involved, and so I wasn't so motivated to doing this. However, if somebody else does it then I'll be happy to include that work. (Modulo paperwork issues.) Oh, one thought just pops into my mind: would it have helped if the message had mentioned that you can use inline methods instead? I could say `Use an inline method instead of the out-of-band method `scp' because your remote shell asks for a password.' Would that have helped? -- Two cafe au lait please, but without milk.