I am using tramp via ssh to access remote files. For text files, this is working really well, but whenever I want to copy larger remote files to my local machine, tramp uses its slow inline method (encoding the file with gzip). This is much slower than using an external method like for example scp. How do I make emacs use scp when transfering large files?
I use an ~/.ssh/config file to access the remote machine. The alias for that machine is hehi09 in the following. The access is password-less
Messages in message buffer when transferring:
Copying /ssh:hehi09:/home/christian/big_file.dat to /home/christian/big_file.dat'... Tramp: Inserting `/ssh:hehi09:/home/christian/big_file.dat'... Tramp: Encoding remote file `/ssh:hehi09:/home/christian/big_file.dat' with `(gzip <%s | base64)'...
tramp-copy-size-limit's value is 10240 (much smaller than tested file size)
tramp-default-method's value is "scp"
$ scp hehi09:/home/christian/big_file.dat ~/works as expected from the command line and is much faster than the transfer in emacs
Any ideas why emacs is not using scp to copy large files? Any help is greatly appreciated!