From owner-freebsd-questions@FreeBSD.ORG Mon Jan 10 03:35:51 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 19FB116A4CF for ; Mon, 10 Jan 2005 03:35:51 +0000 (GMT) Received: from mtiwmhc12.worldnet.att.net (mtiwmhc12.worldnet.att.net [204.127.131.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id 347BA43D31 for ; Mon, 10 Jan 2005 03:35:50 +0000 (GMT) (envelope-from jayobrien@worldnet.att.net) Received: from [192.168.1.6] (dsl093-180-184.sac1.dsl.speakeasy.net[66.93.180.184]) by worldnet.att.net (mtiwmhc12) with ESMTP id <20050110033549112008lc62e> (Authid: jayobrien@att.net); Mon, 10 Jan 2005 03:35:49 +0000 Message-ID: <41E1F815.9090302@att.net> Date: Sun, 09 Jan 2005 19:35:49 -0800 From: Jay O'Brien User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD - questions References: <41E1E95C.5040803@att.net> <41E1ECF9.2090402@gto.net> In-Reply-To: <41E1ECF9.2090402@gto.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: ssh file transfers - how to? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2005 03:35:51 -0000 Jeremy Faulkner wrote: > 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, That works like a champ. Exactly what I was looking for. Thank you! Wow. There's so much to learn. Jay