dir flag for sftp get command?
Chris Aitken
aitken-BwLjziHGQLusTnJN9+BGXg at public.gmane.org
Mon Jun 14 00:04:59 UTC 2004
Taavi Burns wrote:
>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
>
holy shit - that was a wild ride:
<BIG snip>
spmcontax.doc 100% |**************************| 24576 00:00
spmdiary.doc 100% |**************************| 150 KB 00:00
spmtimesheet.doc 100% |**************************| 127 KB 00:00
writeoff.doc 100% |**************************| 10752 00:00
6monthreview 100% |**************************| 6067 00:00
[chris-RMRJWkH6aXE at public.gmane.org chris]$
>
>IIRC, you'll need to have created p733buona800 already.
>
>
Yeah.
>>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.
>
As my daughter would say when she was six, "Instresting" (sic)
: )
Thanks Taavi and Chris. Mission accomplished.
[other] Chris
--
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