From b9421dc80af485591a9c50cc8921f912e0def11e Mon Sep 17 00:00:00 2001 From: Ashlee Young Date: Fri, 23 Oct 2015 10:05:40 -0700 Subject: Removing sources to replace with download links instead. Change-Id: Ie28789a725051aec0d1b04dd291b7690a7898668 Signed-off-by: Ashlee Young --- .../ant/apache-ant-1.9.6/manual/Tasks/sshexec.html | 291 --------------------- 1 file changed, 291 deletions(-) delete mode 100644 framework/src/ant/apache-ant-1.9.6/manual/Tasks/sshexec.html (limited to 'framework/src/ant/apache-ant-1.9.6/manual/Tasks/sshexec.html') diff --git a/framework/src/ant/apache-ant-1.9.6/manual/Tasks/sshexec.html b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/sshexec.html deleted file mode 100644 index 2aab2a6b..00000000 --- a/framework/src/ant/apache-ant-1.9.6/manual/Tasks/sshexec.html +++ /dev/null @@ -1,291 +0,0 @@ - - - - - - -SSHEXEC Task - - - - -

SSHEXEC

-

Description

- -

since Apache Ant 1.6

- -

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.29 and above -and won't work with versions of jsch earlier than -0.1.28.

- -

See also the scp task

- -

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
AttributeDescriptionRequired
hostThe hostname or IP address of the remote host to which you wish to connect.Yes
usernameThe username on the remote host to which you are connecting.Yes
commandThe command to run on the remote host.Either this or commandResource must be set
commandResourceThe resource (file) that contains the commands to run on the remote host. - Since Ant 1.7.1Either this or command must be set
portThe port to connect to on the remote host.No, defaults to 22.
trustThis trusts all unknown hosts if set to yes/true.
- Note If you set this to false (the default), the - host you connect to must be listed in your knownhosts file, this - also implies that the file exists.
No, defaults to No.
knownhostsThis 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.
failonerrorWhether to halt the build if the command does not complete successfully. - No; defaults to true.
passwordThe password.Not if you are using key based - authentication or the password has been given in the file or - todir attribute.
keyfileLocation of the file holding the private key.Yes, if you are using key based - authentication.
passphrasePassphrase for your private key.No, defaults to an empty string.
suppresssystemoutWhether to suppress system out. - since Ant 1.9.0No, defaults to false
suppresssystemerrWhether to suppress system err. - since Ant 1.9.4No, defaults to false
outputName of a file to which to write the output.No
errorOutputThe file to which the standard error of the - command should be redirected. since Ant 1.9.4No
appendWhether output file should be appended to or overwritten. Defaults to false, meaning overwrite any existing file.No
errAppendWhether errorOutput file should be appended to or - overwritten. Defaults to false, meaning overwrite any existing - file. since Ant 1.9.4No
outputpropertyThe name of a property in which the output of the - command should be stored. If you use the commandResource - attribute, each command's output will be prefixed by the - command itself.No
errorpropertyThe name of a property in which the standard error of the - command should be stored. since Ant 1.9.4No
resultpropertythe name of a property in which the return code - of the command should be stored. Only of interest if - failonerror=false. since Ant 1.9.4No
timeoutStop the command if it doesn't finish within the - specified time (given in milliseconds unlike telnet, which - expects a timeout in seconds). - Defaults to 0 which means "wait forever".No
inputA file from which the executed command's standard - input is taken. This attribute is mutually exclusive with the - inputstring and inputproperty attributes.
- When executing more than one command via commandResource, input - will be read for each command. - since Ant 1.8.0
No
verboseDetermines whether sshexec outputs verbosely to the user.
- Similar output is generated as the ssh commandline tool wit the -v option. - since Ant 1.8.0
No, defaults to false
inputpropertyName of a property who's content serves as the - input stream for the executed command. This attribute is - mutually exclusive with the input and inputstring - attributes.
- When executing more than one command via commandResource, input - will be read for each command. - since Ant 1.8.0
No
inputstringA string which serves as the input stream for the - executed command. This attribute is mutually exclusive with the - input and inputproperty attributes.
- When executing more than one command via commandResource, input - will be read for each command. - since Ant 1.8.3
No
useptyWhether to allocate a pseudo-tty (like ssh -t). - since Ant 1.8.3No, defaults to false
useSystemInWhether to pass the current standard input to the - remote process. - since Ant 1.9.4No, defaults to false
- -

Examples

-

Run a command on a remote machine using password authentication

-
-  <sshexec host="somehost"
-	username="dude"
-	password="yo"
-	command="touch somefile"/>
-
- -

Run a command on a remote machine using key authentication

-
-  <sshexec host="somehost"
-	username="dude"
-	keyfile="${user.home}/.ssh/id_dsa"
-	passphrase="yo its a secret"
-	command="touch somefile"/>
-
- -

Run a command on a remote machine using key authentication with no passphrase

-
-  <sshexec host="somehost"
-	username="dude"
-	keyfile="${user.home}/.ssh/id_dsa"
-	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:
-

-  <sshexec host="somehost"
-	username="${username}"
-	password="${password}"
-	command="touch somefile"/>
-
-Invoking ant with the following command line: -
-    ant -Dusername=me -Dpassword=mypassword target1 target2
-
- -Is slightly better, but the username/password is exposed to all users -on an Unix system (via the ps command). The best approach is to use -the -<input> task and/or retrieve the password from a (secured) -.properties file. -

- - -- cgit 1.2.3-korg