<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16587" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=196314613-22012008><FONT face=Arial
color=#0000ff size=2>I don't think you can offer a password on the command line
like that (will push the authorized_keys method =))</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=196314613-22012008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=196314613-22012008><FONT face=Arial
color=#0000ff size=2>you can ssh -l user someserver 'ls -l' for eg but you still
need to authenticate.</FONT></SPAN></DIV><BR>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> fedora-list-bounces@redhat.com
[mailto:fedora-list-bounces@redhat.com] <B>On Behalf Of
</B>tony.chamberlain@lemko.com<BR><B>Sent:</B> 22 January 2008
13:42<BR><B>To:</B> fedora-list@redhat.com<BR><B>Subject:</B> Passing password
in ssh<BR></FONT><BR></DIV>
<DIV></DIV><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></BLOCKQUOTE></BODY></HTML>