James,

I didn't see mention of it but if you go the ssh route I seem to recall
that in some distros (SLES7 maybe?) that the RSA and/or DSAAuthentication
parm needed to be changed to yes in the sshd_config before this would
work.

-----------------------------------
Jeremy Warren
Sr. Systems Programmer
KB Toy Stores
mailto:[EMAIL PROTECTED]@kbtoys.com






James Melin <[EMAIL PROTECTED]>
Sent by: Linux on 390 Port <[email protected]>
02/08/2005 10:38 AM
Please respond to Linux on 390 Port


        To:     [email protected]
        cc:
        Subject:        [LINUX-390] Using ssh to execute a command on another 
system


Got a question about ssh....

rexec  provides an ability to execute a command on a remote system and
pass
the ID/Password on the command line. This prevents the session from
prompting for a password.

e.g: rexec -l username -p password  hostname  command

the problem with rexec , of course, is that it is unsecure.

ssh also allows command line invocation of a command on a remote system.
This is good, in that it will do the authentication encrypted. What I do
not know is how to do it all nice and neat from a script without being
challenged for a password.

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.

----------------------------------------------------------------------
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



----------------------------------------------------------------------
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

Reply via email to