You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by ke...@apache.org on 2007/05/12 06:18:42 UTC
svn commit: r537332 - /ant/core/trunk/docs/manual/OptionalTasks/sshexec.html
Author: kevj
Date: Fri May 11 21:18:36 2007
New Revision: 537332
URL: http://svn.apache.org/viewvc?view=rev&rev=537332
Log:
-updated docs with info about commandResource for SSHExec
Modified:
ant/core/trunk/docs/manual/OptionalTasks/sshexec.html
Modified: ant/core/trunk/docs/manual/OptionalTasks/sshexec.html
URL: http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/OptionalTasks/sshexec.html?view=diff&rev=537332&r1=537331&r2=537332
==============================================================================
--- ant/core/trunk/docs/manual/OptionalTasks/sshexec.html (original)
+++ ant/core/trunk/docs/manual/OptionalTasks/sshexec.html Fri May 11 21:18:36 2007
@@ -61,7 +61,12 @@
<tr>
<td valign="top">command</td>
<td valign="top">The command to run on the remote host.</td>
- <td valian="top" align="center">Yes</td>
+ <td valian="top" align="center">Either this or commandResource must be set</td>
+ </tr>
+ <tr>
+ <td valign="top">commandResource</td>
+ <td valign="top">The resource (file) that contains the commands to run on the remote host.</td>
+ <td valian="top" align="center">Either this or command must be set</td>
</tr>
<tr>
<td valign="top">port</td>
@@ -159,6 +164,15 @@
command="touch somefile"/>
</pre>
+<p><b>Run a set of commands from a command resource (file) on a remote machine using key authentication with no passphrase</b></p>
+<pre>
+ <sshexec host="somehost"
+ username="dude"
+ keyfile="${user.home}/.ssh/id_dsa"
+ commandResource="to_run"/>
+</pre>
+
+
<p><strong>Security Note:</strong> Hard coding passwords and/or usernames
in sshexec task can be a serious security hole. Consider using variable
substitution and include the password on the command line. For example:<br>
@@ -173,9 +187,5 @@
ant -Dusername=me -Dpassword=mypassword target1 target2
</pre>
</p>
-
-
-
</body>
-</html>
-
+</html>
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org