Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 Jan 2005 19:35:49 -0800
From:      Jay O'Brien <jayobrien@att.net>
To:        FreeBSD - questions <questions@freebsd.org>
Subject:   Re: ssh file transfers - how to?
Message-ID:  <41E1F815.9090302@att.net>
In-Reply-To: <41E1ECF9.2090402@gto.net>
References:  <41E1E95C.5040803@att.net> <41E1ECF9.2090402@gto.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 



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