From owner-freebsd-questions Tue Jul 18 13:21:11 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by hub.freebsd.org (Postfix) with ESMTP id 0D41437BB47; Tue, 18 Jul 2000 13:21:04 -0700 (PDT) (envelope-from oberman@ptavv.es.net) Received: from ptavv.es.net (localhost [127.0.0.1]) by ptavv.es.net (8.10.1/8.10.1) with ESMTP id e6IKL0U21970; Tue, 18 Jul 2000 13:21:00 -0700 (PDT) Message-Id: <200007182021.e6IKL0U21970@ptavv.es.net> To: Ben Smithurst Cc: Ron Smith , freebsd-questions@FreeBSD.ORG Subject: Re: Using scp with ssh In-reply-to: Your message of "Tue, 18 Jul 2000 20:21:23 BST." <20000718202123.H4668@strontium.scientia.demon.co.uk> Date: Tue, 18 Jul 2000 13:21:00 -0700 From: "Kevin Oberman" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Date: Tue, 18 Jul 2000 20:21:23 +0100 > From: Ben Smithurst > 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