com.sshtools.ant

Class Ssh


public class Ssh
extends Task

Nested Class Summary

class
Ssh.Exec
class
Ssh.Shell

Field Summary

protected boolean
always
protected String
cipher
protected String
fingerprint
protected String
host
protected String
keyfile
protected String
logfile
protected String
mac
protected String
newline
protected String
passphrase
protected String
password
protected int
port
protected SshClient
ssh
protected String
sshtoolsHome
protected Vector
tasks
protected String
username
protected boolean
verifyhost

Constructor Summary

Ssh()

Method Summary

protected void
connectAndAuthenticate()
SshSubTask
createExec()
SshSubTask
createSftp()
SshSubTask
createShell()
protected void
disconnect()
void
execute()
protected void
executeSubTasks()
protected boolean
hasMoreSftpTasks()
void
setAlways(boolean always)
void
setCipher(String cipher)
void
setFingerprint(String fingerprint)
void
setHost(String host)
void
setKeyfile(String keyfile)
void
setLogfile(String logfile)
void
setMac(String mac)
void
setNewline(String newline)
void
setPassphrase(String passphrase)
void
setPassword(String password)
void
setPort(int port)
void
setSshtoolshome(String sshtoolsHome)
void
setUsername(String username)
void
setVerifyhost(boolean verifyhost)
protected void
validate()

Field Details

always

protected boolean always

cipher

protected String cipher

fingerprint

protected String fingerprint

host

protected String host

keyfile

protected String keyfile

logfile

protected String logfile

mac

protected String mac

newline

protected String newline

passphrase

protected String passphrase

password

protected String password

port

protected int port

ssh

protected SshClient ssh

sshtoolsHome

protected String sshtoolsHome

tasks

protected Vector tasks

username

protected String username

verifyhost

protected boolean verifyhost

Constructor Details

Ssh

public Ssh()

Method Details

connectAndAuthenticate

protected void connectAndAuthenticate()
            throws BuildException

createExec

public SshSubTask createExec()

createSftp

public SshSubTask createSftp()

createShell

public SshSubTask createShell()

disconnect

protected void disconnect()
            throws BuildException

execute

public void execute()
            throws org.apache.tools.ant.BuildException

executeSubTasks

protected void executeSubTasks()
            throws BuildException

hasMoreSftpTasks

protected boolean hasMoreSftpTasks()

setAlways

public void setAlways(boolean always)

setCipher

public void setCipher(String cipher)

setFingerprint

public void setFingerprint(String fingerprint)

setHost

public void setHost(String host)

setKeyfile

public void setKeyfile(String keyfile)

setLogfile

public void setLogfile(String logfile)

setMac

public void setMac(String mac)

setNewline

public void setNewline(String newline)

setPassphrase

public void setPassphrase(String passphrase)

setPassword

public void setPassword(String password)

setPort

public void setPort(int port)

setSshtoolshome

public void setSshtoolshome(String sshtoolsHome)

setUsername

public void setUsername(String username)

setVerifyhost

public void setVerifyhost(boolean verifyhost)

validate

protected void validate()
            throws BuildException

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.