Passing password in ssh

Hiren Joshi josh at moonfruit.com
Tue Jan 22 13:47:52 UTC 2008


I don't think you can offer a password on the command line like that
(will push the authorized_keys method =))
 
you can ssh -l user someserver 'ls -l' for eg but you still need to
authenticate.


________________________________

	From: fedora-list-bounces at redhat.com
[mailto:fedora-list-bounces at redhat.com] On Behalf Of
tony.chamberlain at lemko.com
	Sent: 22 January 2008 13:42
	To: fedora-list at redhat.com
	Subject: Passing password in ssh
	
	


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080122/815e53a6/attachment-0001.htm>


More information about the fedora-list mailing list