Re: ssh / keyless login problem
From: Terry Browning (linux-focus_at_nihil.co.uk)
Date: 07/25/05
- Previous message: SA: "ssh / keyless login problem"
- In reply to: SA: "ssh / keyless login problem"
- Next in thread: Darren Tucker: "Re: ssh / keyless login problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 25 Jul 2005 20:53:28 +0100 To: SA <n0td1scl0s3d@ntlworld.com>
SA wrote:
...
> 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.
-- Terry
- Previous message: SA: "ssh / keyless login problem"
- In reply to: SA: "ssh / keyless login problem"
- Next in thread: Darren Tucker: "Re: ssh / keyless login problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|