DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 14th September 2008
roundkat roundkat is offline
Shell Scout
 
Join Date: May 2008
Posts: 115
Default Best Way to sync web sites

I have a non profit web site that I manage and was hosting it
on my server.
I have recently mirrored the site on another box different location.

Curious what would be a good way to keep them in sync.

i.e.
Make change on site A
Cron job runs x times a day to sync with Site B.

I am looking at rsync but since I have root (via ssh) disabled
at both sites I am not sure how to this would work.

thx
rk
__________________
All posts sent on ReCycled Electrons...
Reply With Quote
  #2   (View Single Post)  
Old 14th September 2008
roundkat roundkat is offline
Shell Scout
 
Join Date: May 2008
Posts: 115
Default

I found a site and it does use rsync...
link here:
http://www.howtoforge.com/mirroring_with_rsync

much easier than I had thought...
__________________
All posts sent on ReCycled Electrons...
Reply With Quote
  #3   (View Single Post)  
Old 14th September 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,052
Default

You might consider using groups for access control so that you need not use root for file transfers.

Another possibility to consider, if root is needed, is to re-enable root login but disable passwords, and use public key authentication instead. In sshd_config(5) use (only the highlighted line is not a default):
Code:
PermitRootLogin yes
PasswordAuthentication no
PubkeyAuthentication yes
If you've never used public key authentication before, here's a simple level-set:
Code:
$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/tester/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/tester/.ssh/id_rsa.
Your public key has been saved in /home/tester/.ssh/id_rsa.pub.
The key fingerprint is:
3a:ca:80:b4:10:c5:ab:6a:ae:3e:3e:25:28:7f:5f:61 tester@jggimi.homeip.net
The key-pair are tied together; a private half and a public half. The private half is kept private. The public half of a key pair may be sent via e-mail, or published on a website. You send the public half (id_rsa.pub) to the system you want to be able to log on to; it gets appended to $HOME/.ssh/authorized_keys.

To connect between servers, no passphrase is used. When humans use keys for authentication, it is recommended to use passphrases. The best practice for authentication is to have require two components -- something the user has (the private key, a token, a fingerprint) and something the user knows (a passphrase or password).
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Collect visited sites bichumo General software and network 3 8th August 2008 06:32 PM
How to sync files over ftp graudeejs FreeBSD General 4 4th August 2008 10:18 PM
Cool sites 18Googol2 Off-Topic 0 2nd May 2008 09:19 AM


All times are GMT. The time now is 05:18 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick