Andy Smith wrote:
> 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.
Yes I know and wouldn't recommend people use this as an everyday solution,
however in this case expect is acting as a kind of boot strap which then
allows the script to set up certificates for every day use - so I do
really need to use this.
>> --
>> Damian Brasher
>> www.diap.org.uk "Aim to protect mission critical data: 'You can't afford
>> to loose...'"
>
> "can't afford to lose" :)
Thanks:) doh!
--
Damian Brasher
www.diap.org.uk "Aim to protect mission critical data: 'You can't afford
to lose...'"
All mail scanned by clam-av
http://www.clamav.net/