James D. Parra wrote: Hi,
Having a couple of problems with rsync and keys. I need to run an rsync session as a cron job and need to bypass the password request. I generated the local and public keys and have the public key saved in the target machine in ~/.ssh/authorised_keys, however whenever I use ssh or rsync both still request a password.
Maybe because the file is named ~/.ssh/authorized_keys (with a "z"), i.e., American and not British spelling? Tip: First make "ssh target_system id" succeed without password request, then configure your rsync cron job. Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod Email: jschrod@acm.org Roedermark, Germany -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, May 09, 2007 at 01:30:35AM +0200, Joachim Schrod wrote:
Maybe because the file is named ~/.ssh/authorized_keys (with a "z"), i.e., American and not British spelling?
The other thing that tends to bite people is permissions on ~/.ssh/authorized_keys. It needs to be 644 ... ie: not writable by anyone but the owner. If the permissions are too loose, the passwordless login will fail. -- In what was destined to be a short-lived spectacle, a chicken, suspended by a balloon, drifted through the Samurai bar's doorway. --Gary Larson San Francisco, CA -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, May 08, 2007 at 04:47:53PM -0700, Michael Nelson wrote:
On Wed, May 09, 2007 at 01:30:35AM +0200, Joachim Schrod wrote:
Maybe because the file is named ~/.ssh/authorized_keys (with a "z"), i.e., American and not British spelling?
The other thing that tends to bite people is permissions on ~/.ssh/authorized_keys. It needs to be 644 ... ie: not writable by anyone but the owner. If the permissions are too loose, the passwordless login will fail.
Actually, I always make authorized_keys 600... but I read in a RedHat manual that 644 should work. I think I will stick with 600. -- In what was destined to be a short-lived spectacle, a chicken, suspended by a balloon, drifted through the Samurai bar's doorway. --Gary Larson San Francisco, CA -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Joachim Schrod
-
Michael Nelson