SFTPManager

From GreenVulcano Wiki
Revision as of 10:31, 3 February 2012 by Anonymous (talk) (Created page with "==Description== Use this element for encapsulating the parameters required to connect to a remote file system accessible via FTP over SSH. =={{VULCON}} / {{GVCONSOLE}} Configur...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

Use this element for encapsulating the parameters required to connect to a remote file system accessible via FTP over SSH.

VulCon / GV Console Configuration

If the target directory is on a remote file system accessible via FTP over SSH, you can define the parameters for connection.

The SFTPManager Element is used by RemoteFileSystemMonitor and remotemanager-call. It has the following attributes:

  • type: remote-manager.
  • class: it.greenvulcano.util.remotefs.sftp.SFTPManager.
  • hostname: Server host name.
  • port: Server listening port. Default: 22.
  • knownHostFilePath: 'known_hosts' file path. Default: $HOME/.ssh/known_hosts
  • authMethod: Authentication method for accessing remote host. The attribute's admitted values are:
    • password
    • publicKey
  • username: Username for the connection. If not set, the user is retrieved by which GV was executed by the system property user.name.
  • password: Password for the connection. #Encrypted
  • connectTimeout: Connect timeout (in milliseconds). Default: infinite.
  • dataTimeout: Data transfer timeout (in milliseconds). Default: infinite.
  • autoConnect: If true the instance use autoconnect/disconnect at each method invocation. Default false. The attribute's admitted values are:
    • true
    • false

IdentityInfo

This subelements retrieves information for public and private keys to connect with SSH, with authentication method publicKey.

The IdentityInfo Element is used by SFTPManager. It has the attributes:

  • privateKey: Path of file containing the private key.
  • passphrase: Passphrase to access the private key. #Encrypted
  • publicKey: Path of file containing the public key.