> What I am looking to do is to ssh to a specific linux, execute a command, > capture the output of that command, parse that output and set some > variables and write out a 'status page' html file. I do not know how to > handle being asked for a password in a shell script. > > I've seen some stuff about the identity file, but that really isn't making > sense to me either and certainly seems like overkill for what I'm doing.
Try using a private/public key pair without pass phrase: 1. Generate a key pair (press enter if the tool prompts for input) ssh-keygen -t dsa 2. Append public key to list of authorized keys for user on remote cat .ssh/id_dsa.pub | ssh [EMAIL PROTECTED] "( mkdir -p .ssh ; cat >> .ssh/authorized_keys )"` 3. Log in/execute commands without password prompt ssh [EMAIL PROTECTED] ls Regards, Peter Oberparleiter -- Peter Oberparleiter Linux on zSeries Development IBM Development Lab, Boeblingen/Germany ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
