Re: [Hampshire] embedded expect

Top Page
Author: Andy Smith
Date:  
To: hampshire
Subject: Re: [Hampshire] embedded expect

Reply to this message
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x57c04100.hantslug.org.uk.777': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: Signature made Sat Oct 13 21:59:47 2007 BST
gpg: using DSA key 2099B64CBF15490B
gpg: Can't check signature: No public key
Hi Damian,

On Sat, Oct 13, 2007 at 07:37:23PM +0100, Damian Brasher wrote:
> ./expect << EOF
> spawn ssh root@$IP_ADD_A 'ls > junk'
> expect "*?assword:*"
> send -- "$ROOT_PASS_A\r"
> send -- "\r"
> expect eof


Is there a reason why you can't use ssh key login? Allowing
password login to root is generally considered insecure.

> --
> Damian Brasher
> www.diap.org.uk "Aim to protect mission critical data: 'You can't afford
> to loose...'"


"can't afford to lose" :)

Cheers,
Andy