| Class | Description |
|---|---|
| E01Shell |
This example demonstrates the simplest use of the API, opening up a
connection, creating a shell, and joining the channel streams to standard
input / output to create a simple remote shell application.
|
| E02ShellWithConsolePrompts |
Similar to link
E01Shell, except the connection details and
credentials are not hard coded. |
| E03ShellWithGUIPrompts |
This examples extends the
E01Shell example, except host user name and
password are all prompted for using Swing components. |
| E04ExecuteCommand |
This example demonstrates executing a command instead of a shell.
|
| E05X11Forwarding |
This example demonstrates X11 forwarding.
|
| E06bLocalForwardingAndShell |
This example demonstrates local port forwarding.
|
| E06LocalForwarding |
This example demonstrates local port forwarding.
|
| E07RemoteForwarding |
This example demonstrates remote port forwarding.
|
| E08Sftp |
A simple Sftp client
|
| E09SSH1Only |
The
DefaultProviderFactory will only return a provider that supports
SSH version 1 (which in practice is currently only the 'Maverick'
implementation) |
| E10PublicKeyAuthentication |
Similar to link
E01ShellWithConsolePrompts, except public key
authentication is used instead of password. |
| E11KeyboardInteractiveAuthentication |
Similar to link
E01ShellWithConsolePrompts, except keyboard
interactive authentication is used instead of password. |
| E12ChangeKeyPassphrase |
This example demonstrates changing the passphrase of a private key using the
SshIdentityManager. |
| E13ExtendedHostKeyValidation |
This example demonstrates using the
SshHostKeyManager to provide more
functionality to a SshHostKeyValidator. |
| E14HostKeyManagement |
This example demonstrates listing and changing known hosts.
|
| E15SCP |
Demonstrates use of simple file transfer using SCP
|
| E16PublicKeySubsytem |
Some servers support remote management of authorized keys.
|
| E17TunneledSocketFactory |
This example demonstrates the use of
SshClient.createTunneledSocketFactory() to create a standard Java
Socket whose connection is actually made from the remote SSH server. |
| E18IdentityManagement |
This example demonstrates listing and changing known hosts.
|
| E19ShellUsingGSSAPI |
This example demonstrates using GSSAPI to authenticate without a password.
|
| E20CustomChannel |
Waits for a custom channel to be opened, sends a reply and closes the
connection.
|
| E21AgentAuthentication |
Authenticates using keys obtained from the local agent.
|
| E99ChoosingAProvider |
This example demonstrates how you can bypass the automatic selection of a
provider and list and choose the SSH implementation to use.
|
| E99ProviderFeatureMatrix |
This example queries all of the providers to draw a feature matrix table in
the 'APT' format (http://maven.apache.org/doxia/references/apt-format.html).
|
| E99ProviderFeatureMatrixHTML |
This example queries all of the providers to draw a feature matric table
|
| JLinePasswordAuthenticator |
SshPasswordAuthenticator that uses JLine to read a password. |
| scp |
Java clone of the de-facto standard OpenSSH scp command.
|
Copyright © 2018. All rights reserved.