Difference between revisions of "SFTP Send"
(→Example 1) |
(→Example 1) |
||
Line 37: | Line 37: | ||
Line 16 '''authType''' can have two possible values "''user password''" or "''user public key''" | Line 16 '''authType''' can have two possible values "''user password''" or "''user public key''" | ||
− | Line 17 '''username''' | + | Line 17 '''username''' can be used with both types of authentication. |
− | Line 18 '''password''' | + | Line 18 '''password''' only used for "''user password''" authentication |
− | Line 19 '''privateKeyFile''' | + | Line 19 '''privateKeyFile''' contains the location of the private key file that you want to use. An example linux command line for creating a key pair would be '''ssh-keygen -m pem -f $1''' where $1 should be the filename that you want to create |
Line 20 '''privateKeyPasswordProtected''' | Line 20 '''privateKeyPasswordProtected''' |
Revision as of 18:10, 6 December 2020
SFTP Send
Installation
Download the appropriate version of the application from SourceForge[1]
- Note that the Windows and MacOS version of the application come with their own private Java Runtime bundled as part of the installer. The Linux version of the installer does not have Java included with it and you will need to make sure that you have Java 1.8 or higher available on your machine.
There is no Graphical User Interface (GUI) for this utility. It can be run from the command prompt / terminal or as a background process.
Before running the application you need to configure it by editing 2 xml files which can be found in the xml/config 'subdirectory.
The two files of interest are sftpSend.xml and email.xml. You only need to edit email.xml if you want the application to send you notifications when files are transferred.
Example 1
The example above shows some values for a configuration that would be used to upload files of type *.xml to a remote SFTP server with username and password authentication.
Line 7 title is a simple heading and is used both for simple documentation and is also used by the email module as the subject for any emails sent.
Line 8 emailEnabled is a simple "true" or "false" switch which either enables or disables the sending of emails by the SFTP Send application.
Line 12 remoteHost is the name of IP Address of the remote host. Note that you can encrypt this information if you want using the SFTP Send Encrypt Utility
Line 13 remotePort is the port number to use for the SFTP connection
Line 14 checkKnownHosts is a yes or no switch to determine if the application validates the connection using the known_hosts file.
Line 15 knownHostsFile is the location of the "known_hosts" file to use.
Line 16 authType can have two possible values "user password" or "user public key"
Line 17 username can be used with both types of authentication.
Line 18 password only used for "user password" authentication
Line 19 privateKeyFile contains the location of the private key file that you want to use. An example linux command line for creating a key pair would be ssh-keygen -m pem -f $1 where $1 should be the filename that you want to create
Line 20 privateKeyPasswordProtected
Line 21 privateKeyPassword
Line 25 localDir
Line 26 localFileMask
Line 27 backupDir
Line 31 remoteDir
Line 32 tempFileExtension