|
See the man page for ssh.
Example in csh
#!/bin/csh
set hosts="sys1 sys2"
foreach x ($hosts)
ssh $x find /export/home -name "blah"
end
You would have to set up that the account that runs this can ssh without needing to put in a password - see the man page for ssh - look for the RSA authentication.
|