Mirror Your Web Site With rsync question

Discussion in 'HOWTO-Related Questions' started by cruz, Feb 14, 2008.

  1. cruz

    cruz New Member

    When I get to this step.
    HTML:
    4 Create The Keys On mirror.example.com
    I enter
    HTML:
    mkdir /root/rsync
    ssh-keygen -t dsa -b 2048 -f /root/rsync/server2-rsync-key 
    and get
    HTML:
    DSA keys must be 1024 bits
    
    Can someone please help. Thank you
     
  2. edge

    edge Active Member Moderator

    Not sure if this will help, but try
    Code:
    ssh-keygen -t dsa -b 1024 -f /root/rsync/server2-rsync-key
     
  3. falko

    falko Super Moderator ISPConfig Developer

    Yes, that should work. :)
     
  4. cruz

    cruz New Member

    that command worked, but it is asking for a key

    The command worked, but it is asking for a key when I enter this command. I did modify the urls to my setup.
    HTML:
    rsync -avz --delete --exclude=**/stats --exclude=**/error --exclude=**/files/pictures -e "ssh -i /root/rsync/mirror-rsync-key" [email protected]:/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.
    HTML:
    vi /home/someuser/.ssh/authorized_keys
    
    
    Output of key after.
    HTML:
    command="/home/someuser/rsync/checkrsync",from="server2.mysite4webhosting.com",no-port-forwarding,no-X11-forwarding,no-pty ssh-dss AAAAB3NzaC1kc3MAAA[...]lSUom [email protected] ssh-dss AAAAB3NzaC1kc3MAAACBAMbGP5TAJ8QbHVra6dSjpaaZqjxLuYpAMZkaaIDOUEHiJmCSR1lBr+k5xgNfyZ8SR7fvviHaS0l9u7j9nM9BpeIzneZN3GdtbCWt2dMCu4YSbWcyeYugdG/QJ8Et+I+Z7VnKgolNu5gqzptvWNVAObyS6X5Vc7IQJHU5ze5qqJJtAAAAFQDEEsbqZAl02ASzOYXUuHCiJxNtiQAAAIBRHWePFarbM5lXv/TMqlPcnaie/zJRJ9kl4XNF0kKqAT+cOuWmIzrF1J+Jw1SYI0bclBD3nFEe+wWlIEQJytmpFPPqf3SAnJ90RH997ApVeYqzcwv4N1ZGo55ZJx+FUfUVn9GgtbVuTxBeCZpHxbaLqfyzrBIbVbg3s/LVojE+ygAAAIEAoAOZA6gYg8ShRh/zZnl0LuSyWV+g30uZtQNpgx8Ga/1aGT3OfMovn/vX3uOTgOrAdsivuAJPESIHMmuoQrbMIuj4ydeVw1wYm/Ba9CUZ0C8kSBCaxmtS6XUaj+vDiUnjR1kP2gDEPnAAh7foqPvMqOTN6Q6j4OtFCRcbKgXf5/E= [email protected]
    
    I see it is saying root @ serrver2. Is that the problem?
     
  5. falko

    falko Super Moderator ISPConfig Developer

    Does it ask you for a password when you remove
    Code:
    command="/home/someuser/rsync/checkrsync",from="server2.mysite4webhosting.com",no-port-forwarding,no-X11-forwarding,no-pty
    from the key?
     
  6. cruz

    cruz New Member

    I tool it out and retried and it still is asking for a password.
     
  7. falko

    falko Super Moderator ISPConfig Developer

    Then you did something wrong in the other steps of the tutorial. Please try to configure rsync again from the beginning.
     
  8. cruz

    cruz New Member

    thank you

    Will do, thank you
     

Share This Page