Re: [Hampshire] embedded expect

Etusivu
Lähettäjä: Andy Smith
Päiväys:  
Vastaanottaja: hampshire
Aihe: Re: [Hampshire] embedded expect

Vastaa
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x56def100.hantslug.org.uk.5938': 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