View Full Version : Mirror Your Web Site With rsync question
cruz
14th February 2008, 22:31
When I get to this step.4 Create The Keys On mirror.example.comI enter mkdir /root/rsync
ssh-keygen -t dsa -b 2048 -f /root/rsync/server2-rsync-key and get DSA keys must be 1024 bits
Can someone please help. Thank you
edge
14th February 2008, 22:35
Not sure if this will help, but try ssh-keygen -t dsa -b 1024 -f /root/rsync/server2-rsync-key
falko
15th February 2008, 19:18
Yes, that should work. :)
cruz
15th February 2008, 21:46
The command worked, but it is asking for a key when I enter this command. I did modify the urls to my setup. rsync -avz --delete --exclude=**/stats --exclude=**/error --exclude=**/files/pictures -e "ssh -i /root/rsync/mirror-rsync-key" someuser@server1.example.com:/var/www/ /var/www/
It is asking me for a password. Also when I looked at the key, it is real long. Here is the key output. I run this command and edit the file as in the directions. vi /home/someuser/.ssh/authorized_keys
Output of key after. command="/home/someuser/rsync/checkrsync",from="server2.mysite4webhosting.com",no-port-forwarding,no-X11-forwarding,no-pty ssh-dss AAAAB3NzaC1kc3MAAA[...]lSUom root@mirror ssh-dss AAAAB3NzaC1kc3MAAACBAMbGP5TAJ8QbHVra6dSjpaaZqjxLuY pAMZkaaIDOUEHiJmCSR1lBr+k5xgNfyZ8SR7fvviHaS0l9u7j9 nM9BpeIzneZN3GdtbCWt2dMCu4YSbWcyeYugdG/QJ8Et+I+Z7VnKgolNu5gqzptvWNVAObyS6X5Vc7IQJHU5ze5qq JJtAAAAFQDEEsbqZAl02ASzOYXUuHCiJxNtiQAAAIBRHWePFar bM5lXv/TMqlPcnaie/zJRJ9kl4XNF0kKqAT+cOuWmIzrF1J+Jw1SYI0bclBD3nFEe+wW lIEQJytmpFPPqf3SAnJ90RH997ApVeYqzcwv4N1ZGo55ZJx+FU fUVn9GgtbVuTxBeCZpHxbaLqfyzrBIbVbg3s/LVojE+ygAAAIEAoAOZA6gYg8ShRh/zZnl0LuSyWV+g30uZtQNpgx8Ga/1aGT3OfMovn/vX3uOTgOrAdsivuAJPESIHMmuoQrbMIuj4ydeVw1wYm/Ba9CUZ0C8kSBCaxmtS6XUaj+vDiUnjR1kP2gDEPnAAh7foqPvM qOTN6Q6j4OtFCRcbKgXf5/E= root@server2.mysite4webhosting.com
I see it is saying root @ serrver2. Is that the problem?
falko
16th February 2008, 18:58
Does it ask you for a password when you remove
command="/home/someuser/rsync/checkrsync",from="server2.mysite4webhosting.com",no-port-forwarding,no-X11-forwarding,no-pty
from the key?
cruz
18th February 2008, 22:21
I tool it out and retried and it still is asking for a password.
falko
19th February 2008, 14:51
Then you did something wrong in the other steps of the tutorial. Please try to configure rsync again from the beginning.
cruz
19th February 2008, 19:35
Will do, thank you
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.