From owner-freebsd-questions@FreeBSD.ORG Mon Jan 10 02:44:34 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 71B2016A4CE for ; Mon, 10 Jan 2005 02:44:34 +0000 (GMT) Received: from smtp.golden.net (smtp.golden.net [199.166.210.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E0B443D1F for ; Mon, 10 Jan 2005 02:44:34 +0000 (GMT) (envelope-from gldisater@gto.net) Received: from 186-230.speede.golden.net ([216.75.186.230]) by smtp.golden.net with esmtp (Exim 4.22) id 1CnpXl-000CGL-7r; Sun, 09 Jan 2005 21:44:33 -0500 Message-ID: <41E1ECF9.2090402@gto.net> Date: Sun, 09 Jan 2005 21:48:25 -0500 From: Jeremy Faulkner User-Agent: Mozilla Thunderbird 1.0 (X11/20041208) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jay O'Brien References: <41E1E95C.5040803@att.net> In-Reply-To: <41E1E95C.5040803@att.net> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: FreeBSD - questions Subject: Re: ssh file transfers - how to? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: gldisater@gto.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2005 02:44:34 -0000 Jay O'Brien wrote: > I'm using ssh to connect from my local FreeBSD machine to a > distant FreeBSD machine. I want to copy a file structure, i.e., > a directory and its subdirectories, from the distant machine > to my local machine. > > I can do this fine using WS_FTP Pro in Windows, using another > local Windows machine, and then use WS_FTP Pro to copy the files > to the FreeBSD local machine from the Windows computer. It seems > like I should be able to perform the same copy process directly, > from one FreeBSD machine to the other, using ssh. > > I can connect to the distant machine just fine using ssh. > > For purposes of discussion, I'm logged into the distant machine > as jay@distantmachine.net. I'm logged in to the directory /www/jay > and my localmachine directory (now empty) is /home/www/jay. I want > everything in the www/jay directory on distantmachine to be copied > as the home/www/jay directory on localmachine. > scp -r jay@distantmachine.net:/home/www/jay /home/www/jay -- Jeremy Faulkner