From: Kai Grossjohann <kai.grossjohann@gmx.net>
Subject: Re: TRAMP and scp
Date: Sun, 19 Oct 2003 16:58:46 +0200 [thread overview]
Message-ID: <86brsdi89l.fsf@slowfox.dyndns.org> (raw)
In-Reply-To: bmu2qr01c0q@enews1.newsguy.com
Michael Powe <michael+gnus@trollope.org> 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.
next prev parent reply other threads:[~2003-10-19 14:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-19 13:16 TRAMP and scp Michael Powe
2003-10-19 14:58 ` Kai Grossjohann [this message]
[not found] ` <mailman.1979.1066575685.21628.help-gnu-emacs@gnu.org>
2003-10-19 22:29 ` Michael Powe
2003-10-30 21:19 ` Kai Grossjohann
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86brsdi89l.fsf@slowfox.dyndns.org \
--to=kai.grossjohann@gmx.net \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).