On 5/27/2010 at 10:24 PM, Lars Ellenberg <[email protected]> wrote: 
> On Thu, May 27, 2010 at 12:46:14AM +0200, Matthias Ferdinand wrote: 
> > --On Wednesday, May 26, 2010 12:00:02 -0600 
> > [email protected] wrote: 
> > >> OK, but it'd be still better/easier to just use ssh with public 
> > >> key authentication. For telnet, there is a python plugin 
> > >> ibmrsa-telnet which could be modified for iLO. 
> > >  
> > > DISPLAY=dummy SSH_ASKPASS=/bin/my_cat_passwd_file.sh ssh somewhere 
> > > my_cat_passwd_file.sh: 
> > ># !/bin/sh 
> > > cat /etc/passwd_file 
> > >  
> > > /etc/passwd_file: 0600 root root containing your password ;-) 
>  
> > thank you for your hints. SSH_ASKPASS did not work for me (using password 
> > auth), ssh keeps prompting for the password. Apparently SSH_ASKPASS is for 
> > passphrases only. 
>  
> No.  But as long as ssh _does_ have a tty, it will ask for the password 
> on the tty ;-) 
> Only if it does not find a tty, it will use the askpass hook. 
>  
> > but as the script now does the job I think will just leave it at that. 
>  
> It needs to work for you, that is what matters. 

If you still want to fiddle around with SSH_ASKPASS, it might help to
redirect stdin from /dev/null...

Regards,

Tim


-- 
Tim Serong <[email protected]>
Senior Clustering Engineer, OPS Engineering, Novell Inc.



_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to