all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Improving tramp download speed
@ 2004-02-19 21:05 fsu
  2004-02-20  8:01 ` Kai Grossjohann
  0 siblings, 1 reply; 2+ messages in thread
From: fsu @ 2004-02-19 21:05 UTC (permalink / raw)


Hello,

I am currently using tramp to work with remote files. Using ftp
transport tramp was fine, but I changed to scp transport for improved
security and find that it is just to slow.

What is the fastest way to work with remote files while still being
relatively secure (no passwords in clear text acros the net).

Regards,

Frank

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Improving tramp download speed
  2004-02-19 21:05 Improving tramp download speed fsu
@ 2004-02-20  8:01 ` Kai Grossjohann
  0 siblings, 0 replies; 2+ messages in thread
From: Kai Grossjohann @ 2004-02-20  8:01 UTC (permalink / raw)


fsu@sonnemans.net writes:

> I am currently using tramp to work with remote files. Using ftp
> transport tramp was fine, but I changed to scp transport for improved
> security and find that it is just to slow.
>
> What is the fastest way to work with remote files while still being
> relatively secure (no passwords in clear text acros the net).

One reason for scp to be slow is that it requires to set up a
connection every time when you transfer a file.  The file transfer
itself is fast, but this only pays off for large files.

I've started to use inline methods (ie, the method ssh instead of
scp), and I'm happy with its speed.  Even a fairly large text file got
transferred quickly enough.

With the ssh method, Tramp invokes mimencode (or a similar program) on
the remote end, then extracts the base64 encoded stuff from the shell
buffer (ie, the buffer *tramp/foo*), and base64-decodes the stuff
locally.  This means that there is some overhead, for the base64
encoded stuff is larger than the original file.  But Tramp doesn't
need to initiate another connection.

You could try to invoke scp manually to transfer a tiny file to get a
feeling for how long it takes to set up the connection.

Another possibility is to install the fsh package.  It's a program
(not an Emacs Lisp package) which multiplexes single ssh connections.
I gather that invoking fcp to copy files is also fast because fcp
knows to re-use an existing ssh connection.  I installed hooks for
fsh/fcp in Tramp ages ago, but I don't know whether they still work.

I don't know how the speed of fsh/fcp compares with just using an
inline method in Tramp.  Does anyone have experience regarding this?

Kai

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-02-20  8:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-19 21:05 Improving tramp download speed fsu
2004-02-20  8:01 ` Kai Grossjohann

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.