Re: ssh / keyless login problem
From: Terry Browning (linux-focus_at_nihil.co.uk)
Date: Mon, 25 Jul 2005 20:53:28 +0100 To: SA <email@example.com>
> The first time the script runs after a long delay (ie overnight when the local
> host is turned off) ssh always asks for a password despite there being a
> valid key pair on both hosts. If I kill the script and run it again then it
> runs without asking for a password (as it should). My script needs to log in
> several times and run automatically so password free operation is essential.
Have you tried "PasswordAuthentication no" ?
e.g.> ssh -o "PasswordAuthentication no" diesel.eee.nottingham.ac.uk
You could try a cron script on diesel to
"cat /home/whatever/.ssh/authorized_keys > /dev/null"
shortly before the backup is due. Nasty, but quick.