Example usage for Java org.apache.commons.net.ssh SSHClient fields, constructors, methods, implement or subclass
The text is from its open source code.
SSHClient() Default constructor. |
void | authPassword(String username, char[] password) Authenticate username using the "password" authentication method. |
void | authPassword(String username, PasswordFinder pfinder) Authenticate username using the "password" authentication method. |
void | authPassword(String username, String password) Authenticate username using the "password" authentication method. |
void | authPublickey(String username) Authenticate username using the "publickey" authentication method, with keys from some commons locations on the file system. |
void | connect(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. |
void | disconnect() Disconnects from the connected SSH server. |
Connection | getConnection() Returns the associated Connection instance. |
RemotePortForwarder | getRemotePortForwarder() Returns a RemotePortForwarder that allows requesting remote forwarding over this connection. |
Transport | getTransport() Returns the associated Transport instance. |
boolean | isConnected() Whether connected. |
void | loadKnownHosts() Attempts loading the user's known_hosts file from the default location, i.e. |
LocalPortForwarder | newLocalPortForwarder(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 . |
SCPFileTransfer | newSCPFileTransfer() Instantiates a SCPFileTransfer implementation. |
SFTPClient | newSFTPClient() Instantiates SFTPClient implementation. |
X11Forwarder | registerX11Forwarder(ConnectListener listener) Register a listener for handling forwarded X11 channels. |
Session | startSession() Opens a session channel. |
void | useCompression() Adds zlib compression to preferred compression algorithms. |