Java org.apache.commons.net.ssh SSHClient fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.net.ssh SSHClient fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.net.ssh SSHClient.

The text is from its open source code.

Constructor

SSHClient()
Default constructor.

Method

voidauthPassword(String username, char[] password)
Authenticate username using the "password" authentication method.
voidauthPassword(String username, PasswordFinder pfinder)
Authenticate username using the "password" authentication method.
voidauthPassword(String username, String password)
Authenticate username using the "password" authentication method.
voidauthPublickey(String username)
Authenticate username using the "publickey" authentication method, with keys from some commons locations on the file system.
voidconnect(InetAddress host)
Opens a Socket connected to a remote host at the current default port and originating from the current host at a system assigned port.
voiddisconnect()
Disconnects from the connected SSH server.
ConnectiongetConnection()
Returns the associated Connection instance.
RemotePortForwardergetRemotePortForwarder()
Returns a RemotePortForwarder that allows requesting remote forwarding over this connection.
TransportgetTransport()
Returns the associated Transport instance.
booleanisConnected()
Whether connected.
voidloadKnownHosts()
Attempts loading the user's known_hosts file from the default location, i.e.
LocalPortForwardernewLocalPortForwarder(SocketAddress address, String host, int port)
Create a LocalPortForwarder that will listen on address and forward incoming connections to the server; which will further forward them to host:port .
SCPFileTransfernewSCPFileTransfer()
Instantiates a SCPFileTransfer implementation.
SFTPClientnewSFTPClient()
Instantiates SFTPClient implementation.
X11ForwarderregisterX11Forwarder(ConnectListener listener)
Register a listener for handling forwarded X11 channels.
SessionstartSession()
Opens a session channel.
voiduseCompression()
Adds zlib compression to preferred compression algorithms.