diff --git a/docs/manual/OptionalTasks/sshexec.html b/docs/manual/OptionalTasks/sshexec.html index 14dfe2281..c4876454c 100644 --- a/docs/manual/OptionalTasks/sshexec.html +++ b/docs/manual/OptionalTasks/sshexec.html @@ -61,7 +61,12 @@ and won't work with versions of jsch earlier than command The command to run on the remote host. - Yes + Either this or commandResource must be set + + + commandResource + The resource (file) that contains the commands to run on the remote host. + Either this or command must be set port @@ -159,6 +164,15 @@ and won't work with versions of jsch earlier than command="touch somefile"/> +

Run a set of commands from a command resource (file) on a remote machine using key authentication with no passphrase

+
+  <sshexec host="somehost"
+	username="dude"
+	keyfile="${user.home}/.ssh/id_dsa"
+	commandResource="to_run"/>
+
+ +

Security Note: 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:
@@ -173,9 +187,5 @@ Invoke ant with the following command line: ant -Dusername=me -Dpassword=mypassword target1 target2

- - - - - + \ No newline at end of file