Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: CKConsulting on March 08, 2005, 06:41:01 AM
-
I'm trying to use Dungog to Rsync server1(ibay) to server2(Ibay) accross the WAN.
-I created a user on both servers (test1) same password on both servers.
-I installed the RPM so could give both users shell access
-I'm following the instructions from post http://forums.contribs.org/index.php?topic=23215.msg93167#msg93167
- I used putty and logged into server2 as (test1) and performed the following steps
- I keep getting permission denied on the 5th step below. (scp id_rsa.pub server1.com:.ssh/local.pub)
bash-2.05a$ scp id_rsa.pub server1.com:.ssh/localserver.pub
test1@server1.com's password:
scp: .ssh/localserver.pub: Permission denied
- I'm using the password of the test1 account
-I'm having issues trouble shooting because I don't know what the command is doing?
enable shell access to both servers for a common username
ssh to both servers, mkdir ~/.ssh
ssh to local.server.net, cd to ~/.ssh
ssh-keygen -t rsa [accept file name id_rsa][don't enter a passphrase]
scp id_rsa.pub remote.server.net:.ssh/local.pub
slogin remote.server.net
cd .ssh
cat local.pub >> authorized_keys
Thanks,
Rick
-
Try this, bearing in mind that in the case below:
- the user on both box is called "backupop",
- we are copying the key from server1 onto server2 (in this case ftp.burnat.com).
- Bash is enabled on server 2 for user "backupop" .
bash-2.05a$ scp id_rsa.pub backupop\@ftp.burnat.com:.ssh/local.pub
The authenticity of host 'ftp.burnat.com (203.47.55.180)' can't be established.
RSA key fingerprint is e5:cc:00:5c:57:ec:86:52:8d:1a:36:82:a3:36:68:ba.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'ftp.burnat.com,203.47.55.180' (RSA) to the list of known hosts.
backupop@ftp.burnat.com's password:
[supply password]
id_rsa.pub 100% 223 0.0KB/s 00:00
I can send you the full logs of the installation if you wish.
regards
christian
PS: copy to server2, and consider .ssh/local.pub - not .ssh/localserver.pub
-
Hello Rick,
I have set up something similar. I backup all relevant data from a SME server to a Fedora Core2 server with Rsync.
I have written up a howto for personal use. If you are interrested, I can mail you the document.
send an email to: vriesli @ freesurf.ch
Martijn
-
Thanks, I got it working. This is great!
Backuppc for daily backups and rsync for offsite DR.
Reliable backups at a low cost.
Now, if I could backup a windows box over the WAN to a SME box all would be right in world.
Rick
-
good to hear, dungog is great! Google DoubleImage for windoes. you can use DBimage to "rsync" windoes box on schedule onto an ibay on a local sme server, then use dungog rsync to move the files of site.