Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th June 2007, 05:34
bpmee bpmee is offline
Member
 
Join Date: Aug 2006
Posts: 86
Thanks: 3
Thanked 7 Times in 6 Posts
Question RSYNC asks for password, but I followed the HOW-TO for automatic login

Hi All,

I'm on Fedora Core 5.

I followed the RSYNC "How-To" by Falko, and setup my users and keys on two different servers.

Now, when I get to the last step, I am asked for a password for the user at the site I am trying to mirror.

I searched around the forum, and found a couple possible answers:

http://www.howtoforge.com/forums/sho...+asks+password

I used an idea from a user suggested on the second page. He/She suggested putting a comma after the final "pty" in the "command..." programming that is added to "authorized keys". Also, this user suggested putting the "ssh...[key]" on its own line. I did this as well...

When I returned to attempt another automatic transfer, I was asked for a password again...

Here is the output of my command request, from the "mirror" server attempting to automatically login into my main server:

** Note, I specified a different folder for the backup on the mirror server on purpose, noted below as "rsyncbm"

** Note, the keys were generated using 1024 bits, not 2048, since for some reason Fedora would not allow 2048 creation.

Code:
[root@BACKUP ~]# rsync -avz --delete --exclude=**/stats --exclude=**/error --exclude=**/files/pictures -e "ssh -vi /root/rsync/mirror-rsync-key" rsyncbm@me.com:/home/www/ /home/rsyncbm/
OpenSSH_4.3p2, OpenSSL 0.9.8a 11 Oct 2005
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to me.com [64.x.x.52] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/rsync/mirror-rsync-key type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'me.com' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: publickey
debug1: Offering public key: /root/rsync/mirror-rsync-key
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: password
rsyncbm@me.com's password:
My guess is that there is a system configuration for authentications?
Reply With Quote
Sponsored Links
  #2  
Old 8th June 2007, 13:23
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

I wrote the tutorial for Debian, so I cannot say why it doesn't work on Fedora...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 8th June 2007, 22:17
bpmee bpmee is offline
Member
 
Join Date: Aug 2006
Posts: 86
Thanks: 3
Thanked 7 Times in 6 Posts
Thumbs up No Problem, Perhaps another member has some experience with this?

Hi Falko,

No problem - I realize you guys are very busy with the rest of the forum and ISPConfig development...

Perhaps another member has some experience with RSYNC and Fedora Core 5??
Reply With Quote
  #4  
Old 9th June 2007, 19:24
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,146
Thanks: 4
Thanked 55 Times in 51 Posts
 
Default

well, I see no reason why it shouldn't work also on FC5... please redo all the steps... I've also made errors when doing that but that was solely my fault...
Reply With Quote
Reply

Bookmarks

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
rsync: opendir "/var/www/web44/web" failed: Permission denied (13) adrenalinic HOWTO-Related Questions 7 4th August 2009 13:16
Unable to authenticate to SMTP server ashkev Installation/Configuration 15 6th February 2007 17:46
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 17:17
kann keine mails empfangen odin1 Installation/Configuration 5 6th July 2006 12:13
Total Frustration-HELP palkat Installation/Configuration 17 3rd September 2005 17:28


All times are GMT +2. The time now is 01:02.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.