need some help with networking on a friends
Kevin O'Gorman
kevin
Mon May 17 11:37:11 PDT 2004
I use scp all the time. It just seemed to work naturally once ssh was
itself working -- scp depends on ssh.
The syntax is basically like 'cp' itself, except when you refer
to a remote location. For one thing, you have to name the remote
host, so a command like
scp myfile.txt user at host:
will copy the myfile.txt to user's home directory on host, and
scp myfile.txt user at host:subdir
will copy it into a subdirectory of user's home directory.
You can omit 'user@', and scp will use the same username you're using
on the local host. You must have the host and the colon (":") for
scp to know it's to copy to the remote host.
You can copy the other way too:
scp user at host:hisfile.txt .
I have not had much luck using wildcards in the remote filespec.
++ kevin
--
Kevin O'Gorman, PhD (805) 650-6274 mailto:kevin at kosmanor.com
Permanent e-mail forwarder: mailto:Kevin.O'Gorman.64 at Alum.Dartmouth.org
Permanent e-mail forwarder mailto:kogorman at umail.ucsb.edu
Web: http://kosmanor.com/~kevin/index.html
On Tue, 3 Sep 2002, Marianne Taylor wrote:
> On September 3, 2002 02:28 pm, you wrote:
> > On Tue, 3 Sep 2002 20:56, David A. Bandel wrote:
> >
> > As per usual, thanks for the soucient and informative reply. Am just
> > printing outhe article re ipchains. I will have to try scp again but last
> > time it failed, due to operator ignorance.
>
> I have to say that I have never got scp to work either. When you get it
> figured out - care to share the proper syntax?
>
> Marianne
> _______________________________________________
> Linux-users mailing list
> Linux-users at linux-sxs.org
> Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users
>
More information about the Linux-users
mailing list