helma.Ssh

Object
   |
   +--helma.Ssh


This class provides methods for connecting to a remote server via secure shell (ssh) and copying files from/to a remote server using secure copy (scp). It utilizes "Ganymed SSH-2 for Java" (see http://www.ganymed.ethz.ch/ssh2/).
Defined in Ssh.js

Author: Robert Gaggl



Constructor Summary
helma.Ssh(<String> server, <helma.File|java.io.File|String> hosts)
            Creates a new instance of helma.Ssh
 
Methods Summary
 Boolean addKnownHosts(<helma.File|java.io.File|String> file)
           Opens the file passed as argument and adds the known hosts therein to the list of known hosts for this client.
 Boolean connect(<String> username, <String> password)
           Connects to a remote host using plain username/password authentication.
 Boolean connectWithKey(<String> username, <helma.File|java.io.File|String> key, <String> passphrase)
           Connects to a remote host using a private key and the corresponding passphrase.
 void disconnect()
           Disconnects this client from the remote server.
 String execCommand(<String> cmd)
           Executes a single command on the remote server.
 Boolean get(<String|Array> remoteFile, <String> targetDir)
           Retrieves a file from the remote server and stores it locally.
 Boolean isConnected()
           Returns true if this client is currently connected.
 Object isParanoid()
           Returns true if this client is in paranoid mode.
 Boolean put(<String|Array> localFile, <String> remoteDir, <String> mode)
           Copies a local file to the remote server
 void setParanoid(<Boolean> p)
           Toggles paranoid mode.

Constructor Detail

helma.Ssh

helma.Ssh(<String> server, <helma.File|java.io.File|String> hosts)

Method Detail

addKnownHosts

Boolean addKnownHosts(<helma.File|java.io.File|String> file)

connect

Boolean connect(<String> username, <String> password)

connectWithKey

Boolean connectWithKey(<String> username, <helma.File|java.io.File|String> key, <String> passphrase)

disconnect

void disconnect()

execCommand

String execCommand(<String> cmd)

get

Boolean get(<String|Array> remoteFile, <String> targetDir)

isConnected

Boolean isConnected()

isParanoid

Object isParanoid()

put

Boolean put(<String|Array> localFile, <String> remoteDir, <String> mode)

setParanoid

void setParanoid(<Boolean> p)


Documentation generated by JSDoc on Thu Apr 5 01:59:00 2007