in reply to Re^2: Syncing Servers using Perl
in thread Syncing Servers using Perl

Remove that passphrase from .ssh/id_rsa. If the passphrase is stored in a script anyway it doesn't provide additional security.

BTW if you want to synchronize files one way, use rsync. If you want it two way, use unison - very cool tool.

Replies are listed 'Best First'.
Re^4: Syncing Servers using Perl
by jperlq (Acolyte) on Jun 26, 2008 at 14:27 UTC
    This would probably work if systems wasn't clever enough to centralize the .ssh/id_rsa keys.

    Server1 doesn't even contain id_rsa files in ~home/.ssh directories.

      I don't understand that - why is it asking for a password for a file that's not present?

      Anyway, expect can be used to automate interaction with programs that read directly from the terminal (as ssh-askpass does, I think).