[ale] Dumb question - file transfer over SSH?
Charles Marcus
CharlesM at Media-Brokers.com
Thu Apr 25 12:51:09 EDT 2002
Damn - I just saw what I was doing...
I am already ON the remote server, so scp is running on the REMOTE server...
duh! (slaps self upside head)
I see, I need a LOCAL scp client - OK, will try WinSCP as recommended by Ben
(thanks Ben).
Thanks, and sorry for the brain fart.
Charles
> -----Original Message-----
> From: Joe at orado.localdomain.private
> [mailto:Joe at orado.localdomain.private]On Behalf Of Joseph A Knapka
> Sent: Thursday, April 25, 2002 12:28 PM
> To: Charles Marcus
> Cc: Ale (E-mail)
> Subject: Re: [ale] Dumb question - file transfer over SSH?
>
>
> Charles Marcus wrote:
> >
> > > From: Jerry Z. Yu [mailto:z.yu at ptek.com]
> > > Sent: Thursday, April 25, 2002 11:09 AM
> > > To: Charles Marcus
> > > Cc: Ale (E-mail)
> > >
> > > scp, the companion tool in most SSH packages, is the tool you
> > > need.
> > >
> > > to upload:
> > > scp localfile userid at remote.server:/remote/server/directory
> > >
> > > to download:
> > > scp userid at remote.server:/remote/server/directory localfile
> >
> > OK, as far as I can tell, I'm doing it right. I get the
> password prompts, and
> > I was even able to *apparently* download a file
> successfully (saw the file
> > transfer progression indicator, no errors) - but I have no
> idea where the file
> > went. I did a full search on all of my hard drives for the
> filename, with no
> > results.
> >
> > :(
> >
> > I may have neglected to say, and maybe this is the problem
> - I am accessing a
> > remote FreeBSD box fropm a WINBLOZE workstation (Win2K-Pro).
> >
> > Sure hope someone knows the trick to get me going here.
> The file transfers I
> > need to make are starting to pile up.
>
> scp works basically *exactly* like cp: it takes the
> first file and copies it to the second, assuming
> the current directory unless you provide a path. So
> I'll copy the file address.txt from "me"'s home dir
> on host "faraway" to my local dir, then copy it to
> the /tmp dir on host "somewhere-else":
>
> C:> scp me at faraway:~/address.txt address.txt
> Password: ...
> C:> type ./address.txt
> This is my address file...
> ...
> C:> scp address.txt me at somewhere-else:/tmp/address.txt
> Password: ...
> C:> ssh -l me somewhere-else
> me at somewhere-else:~ > ls /tmp/address.txt
> /tmp/address.txt
>
> Cheers,
>
> -- Joe
> Using open-source software: free.
> Pissing Bill Gates off: priceless.
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list