[olug] sftp/scp

Mike Hostetler hostetlerm at gmail.com
Thu Aug 25 19:33:40 UTC 2005


On 8/25/05, Craig Wolf <CJWolf at mpsomaha.org> wrote:
> Ok, not having a lot of luck here.  I am writing a script to login to a
> server over ssh and copy a folder and all the files and folders within
> it up to that server.  I am only able to get the files, not the folders
> and files within them.  I have tried mput and put...How do I get them to
> grab everything within that folder??
> 
First, make sure you have your private/public keys working so you
don't have to enter the username/password each time. See:
http://tinyurl.com/4a6cr

(or google for other tutorials)

After that, then this is easy:
scp -r <local folder> hostname:/path/to/remote/folder


-- 
Mike Hostetler
http://www.binary.net/thehaas



More information about the OLUG mailing list