diff --git a/WHATSNEW b/WHATSNEW
index 61b48a441..7577745d6 100644
--- a/WHATSNEW
+++ b/WHATSNEW
@@ -157,9 +157,9 @@ Other changes:
* The Runs a command on a remote machine running SSH daemon.
+ Note: This task depends on external libraries not included
+in the Ant distribution. See Library Dependencies
+for more information. This task has been tested with jsch-0.1.2. Run a command on a remote machine using password authentication Run a command on a remote machine using key authentication Run a command on a remote machine using key authentication with no passphrase Security Note: Hard coding passwords and/or usernames
+in sshexec task can be a serious security hole. Consider using variable
+substituion and include the password on the command line. For example:SSHEXEC
+Description
+Parameters
+
+
+
+
+
+ Attribute
+ Description
+ Required
+
+
+ username
+ The username on the remote host to which you are connecting.
+ Yes
+
+
+ command
+ The command to run on the remote host.
+ Yes
+
+
+ port
+ The port to connect to on the remote host.
+ No, defaults to 22.
+
+
+ trust
+ This trusts all unknown hosts if set to yes/true.
+ No, defaults to No.
+
+
+ knownhosts
+ This sets the known hosts file to use to validate
+ the identity of the remote host. This must be a SSH2 format file.
+ SSH1 format is not supported.
+ No, defaults to
+ ${user.home}/.ssh/known_hosts.
+
+
+ failonerror
+ Log a warning message, but do not stop the build,
+ when the transfer does not work.
+
+ No; defaults to true.
+
+
+ password
+ The password.
+ Not if you are using key based
+ authentication or the password has been given in the file or
+ todir attribute.
+
+
+ keyfile
+ Location of the file holding the private key.
+ Yes, if you are using key based
+ authentication.
+
+
+passphrase
+ Passphrase for your private key.
+ No, defaults to an empty string.
+ Examples
+
+ <sshexec host="somehost"
+ username="dude"
+ password="yo"
+ command="touch somefile"/>
+
+
+
+ <sshexec host="somehost"
+ username="dude"
+ keyfile="${user.home}/.ssh/id_dsa"
+ passphrase="yo its a secret"
+ command="touch somefile"/>
+
+
+
+ <sshexec host="somehost"
+ username="dude"
+ keyfile="${user.home}/.ssh/id_dsa"
+ command="touch somefile"/>
+
+
+
+
+ <sshexec host="somehost"
+ username="${username}"
+ password="${password}"
+ command="touch somefile"/>
+
+Invoke ant with the following command line:
+
+ ant -Dusername=me -Dpassword=mypassword target1 target2
+
+
Copyright © 2003 Apache Software Foundation. +All rights Reserved.
+ + + + diff --git a/docs/manual/install.html b/docs/manual/install.html index 5f15ad2f9..d0366d98d 100644 --- a/docs/manual/install.html +++ b/docs/manual/install.html @@ -420,7 +420,7 @@ Installing Ant / Optional Tasks section above.