Re: ssh / keyless login problem

From: Terry Browning (linux-focus_at_nihil.co.uk)
Date: 07/25/05

  • Next message: Darren Tucker: "Re: ssh / keyless login problem"
    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
    

  • Next message: Darren Tucker: "Re: ssh / keyless login problem"

    Relevant Pages

    • ssh / keyless login problem
      ... OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090701f ... I am using rsync to backup my local host to a remote host over ssh. ... The first time the script runs after a long delay (ie overnight when the local ...
      (SSH)
    • Re: How to get ssh to work in a loop
      ... > script for the sun systems which was quite easy as you only need to ... Drop cat (useless use of this command). ... I believe other UNIX systems) is to continually ping if 'ping HOST' is ... Running multiple ssh calls to the same system in a loop ...
      (comp.unix.shell)
    • Re: How to get ssh to work in a loop
      ... The for loop scrambles stdin, which upset, ssh/rsh, I get around ths by ... > script for the sun systems which was quite easy as you only need to ... > mounted filesystem by ssh to HP host and then creating a file called ... > doing loads of ssh to each host. ...
      (comp.unix.shell)
    • Re: Hack attempts
      ... The machines from where these attempts come are already hacked: ... The script connecting on SSH with user test and guest is checking the ... SSH version and how the SSH reacts besides the plain version reply. ... I was on one hacking host because the rootkit on it - Fuck'it Rootkit ...
      (Fedora)
    • Re: how to logon to 30+ unix machines and put a job in background and logout automatically in a scri
      ... In article, Serge Dubrouski wrote: ... If you don't know anything about ssh, ... Start this script with e.g. ... The first time you run this, ...
      (comp.unix.shell)