in reply to send su password in ssh
A far better strategy, if you absolutely must use a programmatic login or su, is to arrange for login to occur using SSH public/private keys. The script would present its key to avoid the possibility of an actual password challenge.
Naturally, I am extraordinarily uncomfortable with the idea of a script logging on as root... Almost as uncomfortable as I am with the notion of a script possessing credentials that would allow (anyone) to do so.
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: send su password in ssh
by dwm042 (Priest) on Sep 28, 2010 at 21:56 UTC |