Passing password in ssh

Joachim Backes joachim.backes at rhrk.uni-kl.de
Tue Jan 22 14:44:38 UTC 2008


tony.chamberlain at lemko.com wrote:
> 
> 
> Any way to pass a password (on command line) in SSH?
> 
> Sure you can use the ssh-keygen and set up public and
> private keys and all that.  Problem is, in batch mode
> something can go wrong.  You might not have the entry
> in the hosts file, or something.  And then your batch program
> will freeze waiting for a password or human response to type
> "yes".  It would be good to do like ssh -l login -p password blah blah blah,

Dangereous! Somebody calling "ps -eaf" could see this password!

> but I can't figure out how.
> 
> A second question (acutally alternative).  Any other way to do this:
> 
>      ssh -l login host cmd
> 
> That is, execute a command on a remote host, other than ssh?
> Might be an alternative.
> 


-- 
Joachim Backes <joachim.backes at rhrk.uni-kl.de>
University of Kaiserslautern,Computer Center [RHRK],
Systems and Operations, High Performance Computing,
D-67653 Kaiserslautern, PO Box 3049, Germany
--------------------------------------------------
Phone: +49-631-205-2438, FAX: +49-631-205-3056
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6088 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080122/cb1017df/attachment-0001.bin>


More information about the fedora-list mailing list