Class Ssh

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.sshtools.ant.Ssh
All Implemented Interfaces:
Cloneable

public class Ssh extends org.apache.tools.ant.Task
  • Field Details

    • host

      protected String host
    • port

      protected int port
    • username

      protected String username
    • password

      protected String password
    • keyfile

      protected String keyfile
    • passphrase

      protected String passphrase
    • cipher

      protected String cipher
    • mac

      protected String mac
    • fingerprint

      protected String fingerprint
    • logfile

      protected String logfile
    • verifyhost

      protected boolean verifyhost
    • always

      protected boolean always
    • ssh

      protected SshClient ssh
    • tasks

      protected Vector tasks
    • sshtoolsHome

      protected String sshtoolsHome
    • newline

      protected String newline
  • Constructor Details

    • Ssh

      public Ssh()
  • Method Details

    • validate

      protected void validate() throws org.apache.tools.ant.BuildException
      Throws:
      org.apache.tools.ant.BuildException
    • connectAndAuthenticate

      protected void connectAndAuthenticate() throws org.apache.tools.ant.BuildException
      Throws:
      org.apache.tools.ant.BuildException
    • disconnect

      protected void disconnect() throws org.apache.tools.ant.BuildException
      Throws:
      org.apache.tools.ant.BuildException
    • execute

      public void execute() throws org.apache.tools.ant.BuildException
      Overrides:
      execute in class org.apache.tools.ant.Task
      Throws:
      org.apache.tools.ant.BuildException
    • executeSubTasks

      protected void executeSubTasks() throws org.apache.tools.ant.BuildException
      Throws:
      org.apache.tools.ant.BuildException
    • setUsername

      public void setUsername(String username)
    • setPassword

      public void setPassword(String password)
    • setPort

      public void setPort(int port)
    • setNewline

      public void setNewline(String newline)
    • setHost

      public void setHost(String host)
    • setKeyfile

      public void setKeyfile(String keyfile)
    • setPassphrase

      public void setPassphrase(String passphrase)
    • setCipher

      public void setCipher(String cipher)
    • setMac

      public void setMac(String mac)
    • setLogfile

      public void setLogfile(String logfile)
    • setFingerprint

      public void setFingerprint(String fingerprint)
    • setVerifyhost

      public void setVerifyhost(boolean verifyhost)
    • setAlways

      public void setAlways(boolean always)
    • setSshtoolshome

      public void setSshtoolshome(String sshtoolsHome)
    • hasMoreSftpTasks

      protected boolean hasMoreSftpTasks()
    • createShell

      public SshSubTask createShell()
    • createExec

      public SshSubTask createExec()
    • createSftp

      public SshSubTask createSftp()