[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem copying files from remote machine to local one.
From: |
Pawel |
Subject: |
Re: problem copying files from remote machine to local one. |
Date: |
Tue, 30 May 2006 13:31:18 +0200 |
Hallo Michael,
I think I know why it does not work and why I get ssh confirmation request with
bad (loopback) remotehost IP address:
The authenticity of host 'remotehost (127.0.0.1)' can't be established.
RSA key fingerprint is 1e:18:a2:f1:92:d1:d1:5e:f8:e2:96:24:49:e4:45:5d.
Are you sure you want to continue connecting (yes/no)?
Let me explain it in detail.
my tramp(2.1.5) config is:
(add-to-list 'load-path (concat pp-tramp-dir "/lisp"))
(require 'tramp)
GNU Emacs 21.3.1 (i386-redhat-linux-gnu, X toolkit, Xaw3d scroll bars) of
2005-02-04 on bugs.build.redhat.com
tramp-default-method's value is "scp"
tramp-version's value is "2.1.5"
what I want to do:
copy /scp:remotehost:/root/remotefile.txt to /tmp in my localhost.
how I do that:
1) M-x find-file: /scp:remotehost:/root/
dired buffer is opened with success. *tramp/scp remotehost* contents are:
0
2) I am pointing the remotefile.txt and invoke command M-x dired-do-copy: /tmp
This command first of all opens up another shell at remote host with
controlling buffer *tramp/scp remotehost*<2> and THEN invokes scp in that
remote host's shell:
scp -p remotehost:/root/remotefile.txt /tmp/remotefile.txt
Addtional note: I added a trace in tramp-do-copy-or-rename-file-out-of-band
that told me the above:
....
(message "pawel trace: copy-program: %s, copy-args: %s" copy-program copy-args)
;; Use rcp-like program for file transfer.
......
*Messages* buffer contents:
pawel trace: copy-program: scp, copy-args: (-p remotehost:/root/remotefile.txt
/tmp/remotefile.txt)
Therefore contents of *tramp/scp remotehost*<2> are:
The authenticity of host 'remotehost (127.0.0.1)' can't be established.
RSA key fingerprint is 1e:18:a2:f1:92:d1:d1:5e:f8:e2:96:24:49:e4:45:5d.
Are you sure you want to continue connecting (yes/no)?
It is because name `remotehost' is resolved in remote host's shell to
127.0.0.1. This also explains why that ssh confirmation request appeared at all.
My question is: is it a bug in tramp or tramp cannot by design copy files from
remote host to my local machine?
Greetings