Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jul 2000 13:21:00 -0700
From:      "Kevin Oberman" <oberman@es.net>
To:        Ben Smithurst <ben@FreeBSD.ORG>
Cc:        Ron Smith <ronnetron@hotmail.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: Using scp with ssh 
Message-ID:  <200007182021.e6IKL0U21970@ptavv.es.net>
In-Reply-To: Your message of "Tue, 18 Jul 2000 20:21:23 BST." <20000718202123.H4668@strontium.scientia.demon.co.uk> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Date: Tue, 18 Jul 2000 20:21:23 +0100
> From: Ben Smithurst <ben@FreeBSD.ORG>
> Sender: owner-freebsd-questions@FreeBSD.ORG
> 
> 
> --FBBJgEOSAOerUJIT
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
> Content-Transfer-Encoding: quoted-printable
> 
> Ron Smith wrote:
> 
> > I'm looking for examples of how to use 'scp' with 'ssh'. The "man scp" is=
> =20
> > unclear to me, and I can't find anything on this subject in the "freebsd.=
> org=20
> > tutorials". I'd like to be able to transfer files between two remote host=
> s.=20
> > All the 'ssh' stuff is already in place. Any help is greatly appreciated.
> 
> scp myfile myothermachine:~/target/directory/on/other/machine

Or, scp myothermachine:source/directory/on/other/machine myfile
or, if you have a different username on the remote system:
scp username@myothermachine:source/directory/on/other/machine myfile

It's really a lot like a normal 'cp' with the usual arguments and the
added syntax of user@machine to define the remote access information.

R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net			Phone: +1 510 486-8634


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007182021.e6IKL0U21970>