<html><br>
<br>
Any way to pass a password (on command line) in SSH?<br><br>Sure you can use the ssh-keygen and set up public and<br>private keys and all that.  Problem is, in batch mode<br>something can go wrong.  You might not have the entry<br>in the hosts file, or something.  And then your batch program<br>will freeze waiting for a password or human response to type <br>"yes".  It would be good to do like ssh -l login -p password blah blah blah,<br>but I can't figure out how.<br><br>A second question (acutally alternative).  Any other way to do this:<br><br>     ssh -l login host cmd<br><br>That is, execute a command on a remote host, other than ssh?<br>Might be an alternative.<br>
</html>