dir flag for sftp get command?
Taavi Burns
taavi-LbuTpDkqzNzXI80/IeQp7B2eb7JE58TQ at public.gmane.org
Sun Jun 13 18:41:25 UTC 2004
On Sun, Jun 13, 2004 at 02:41:49PM -0400, Chris Aitken wrote:
> When I enter the correct password I get,
>
> [chris-RMRJWkH6aXE at public.gmane.org chris]$ scp -r chris-Q0ErXNX1RuZALGUKhjNAFw at public.gmane.org:/home/chris
> chris-RMRJWkH6aXE at public.gmane.org:/home/chris/p733buona800
> chris-Q0ErXNX1RuZALGUKhjNAFw at public.gmane.org's password:
> ssh: connect to host a800 port 22: Connection refused
> lost connection
It looks like there's no sshd running on host a800. But, since you're
running on host a800, there's no reason to need that. I think you're
looking for a command more like:
scp -r chris-Q0ErXNX1RuZALGUKhjNAFw at public.gmane.org:/home/chris /home/chris/p733buona800
IIRC, you'll need to have created p733buona800 already.
> I did get ftp to do this once (though in this case ftp is not present on
> this debian box, and is only on the rh8.0 on 7.3 box) -- I tricked it
> with wildcards or forward slashes or something but, alas, I didn't
> document (at least somewhere that I could find later).
Um...ftp can't do what you're doing here. ftp is only from your local
machine to/from the server. The scp command you're specifying is moving
a file from host A to host B, while you're running on host C. (now C may
just happen to be the same as A or B, but not necessarily)
You don't need to specify any hosts if you just want to copy files locally.
scp acts like cp when both paths are local.
--
taa
/*eof*/
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list