Author: <kamcginnis@gmail.com>
Posted: 2010-06-14 at 11:49:36
Ted,
I used puttygen to create the private and public keys.
I have the private key here (on Windows XP): C:\cygwin\.ssh\known_hosts
I HAVE the public key here (on the Webfaction server): /home/webfactionlogin/.ssh/authorized_keys
The attributes on the Linux server .ssh is 664
here is the batch file that I run (it asks for the password):
@ECHO ON
path=%path%;\cwRsync\bin;\cwRsync;\cwRsync\.ssh
rem next 2 lines are in the specs but do nothing
set RSYNC_USERNAME=webfactionlogin
set RSYNC_PASSWORD=SecretPassword
rsync -av "/cygdrive/c/LocalWindowsFolder/" "webfactionlogin@webxxx.webfaction.com:~/webapps/DestinationFolder"
----- Original Message -----
From: "Ted Roche" <tedroche@gmail.com>
To: <profox@leafe.com>
Sent: Sunday, June 13, 2010 5:20 PM
Subject: Re: [NF] Webfaction web hosting notes
On Sun, Jun 13, 2010 at 1:56 PM, Ed Leafe <ed@leafe.com> wrote:
> On Jun 13, 2010, at 11:44 AM, <kamcginnis@gmail.com> <kamcginnis@gmail.com> wrote:
>
> You need to set up public/private keys on the machines. If they are present, rsync will use them to authenticate and
will not need a password. Google for "ssh-keygen" and I'm sure you'll find tons of information about how to do this.
>
I think this is only true if you are running rsync over ssh, which I
would consider a best practice. I do something similar to this in
uploading data from some of my clients to our in-house Linux systems.
I think Kam has Windows in-house, so if he wants to use ssh, he's
going to need to set up ssh on the Windows end. I recommend the PuTTY
package of files to do this (PuTTY, Plink, Pagent and others).
Essentially, you launch Pagent manually and supply a key on your
Windows server so it can cache the ssh keys in memory.
--
Ted Roche
Ted Roche & Associates, LLC
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/06fa01cb0bd9$31f88350$7a00a8c0@w2k3s02
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.