Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: ssh / keyless login problem |
|---|---|
| Date: | Mon, 25 Jul 2005 20:53:28 +0100 |
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
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | ssh / keyless login problem, SA |
|---|---|
| Next by Date: | Re: ssh / keyless login problem, Darren Tucker |
| Previous by Thread: | ssh / keyless login problem, SA |
| Next by Thread: | Re: ssh / keyless login problem, Darren Tucker |
| Indexes: | [Date] [Thread] [Top] [All Lists] |