| Package | Description |
|---|---|
| <Unnamed> | |
| net.sf.sshapi |
SSHAPI
|
| net.sf.sshapi.agent | |
| net.sf.sshapi.forwarding | |
| net.sf.sshapi.hostkeys | |
| net.sf.sshapi.identity | |
| net.sf.sshapi.impl.ganymed |
Ganymed SSH-2 for Java is a library which implements the SSH-2 protocol in pure Java (tested on J2SE 1.4.2 and 5.0).
|
| net.sf.sshapi.impl.j2ssh |
J2SSH is a suite of Java SSH applications providing a Java SSH API, SSH Terminal, SSH secured VNC client, SFTP client and SSH Daemon.
|
| net.sf.sshapi.impl.jsch |
JSch is a pure Java implementation of SSH2.
|
| net.sf.sshapi.impl.libssh |
Ganymed SSH-2 for Java is a library which implements the SSH-2 protocol in pure Java (tested on J2SE 1.4.2 and 5.0).
|
| net.sf.sshapi.impl.maverick |
Maverick is the definitive solution for total SSH compatibility on the Java™ platform.
|
| net.sf.sshapi.impl.maverick16 |
Maverick is the definitive solution for total SSH compatibility on the Java™ platform.
|
| net.sf.sshapi.impl.trilead |
Ganymed SSH-2 for Java is a library which implements the SSH-2 protocol in pure Java (tested on J2SE 1.4.2 and 5.0).
|
| net.sf.sshapi.sftp | |
| net.sf.sshapi.util | |
| org.apache.maven.wagon.providers.ssh.sshapi |
| Modifier and Type | Method and Description |
|---|---|
protected static SshKeyPair |
E18IdentityManagement.generate(SshIdentityManager mgr,
java.lang.String cmd) |
static void |
scp.main(java.lang.String[] args)
Entry point.
|
void |
scp.start()
Start the command.
|
protected static void |
E18IdentityManagement.write(SshIdentityManager mgr,
java.lang.String cmd,
SshKeyPair keyPair) |
| Constructor and Description |
|---|
scp()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractClient.addChannelHandler(SshChannelHandler channelFactory) |
void |
SshClient.addChannelHandler(SshChannelHandler channelHandler)
Adds a channel handler to those invoked when custom channel creation
requests are received.
|
boolean |
AbstractClient.authenticate(SshAuthenticator authenticator) |
boolean |
SshClient.authenticate(SshAuthenticator authenticator)
Authenticate using a single authenticator.
|
boolean |
SshClient.authenticate(SshAuthenticator[] authenticators)
Authenticate.
|
void |
AbstractLifecycleComponentWithEvents.close() |
void |
SshLifecycleComponent.close()
Close this component.
|
void |
SshClient.connect(java.lang.String username,
java.lang.String hostname,
int port)
Connect to specified host and port using the provided username.
|
SshAgent |
SshProvider.connectToLocalAgent(java.lang.String application)
Create a connection to the local agent using default or auto-detected
settings.
|
SshAgent |
AbstractProvider.connectToLocalAgent(java.lang.String application) |
SshAgent |
SshProvider.connectToLocalAgent(java.lang.String application,
int protocol)
Create a connection to the local agent using default or auto-detected
settings.
|
SshAgent |
AbstractProvider.connectToLocalAgent(java.lang.String application,
int protocol) |
SshAgent |
SshProvider.connectToLocalAgent(java.lang.String application,
java.lang.String location,
int socketType,
int protocol)
Create a connection to the local agent.
|
SshAgent |
AbstractProvider.connectToLocalAgent(java.lang.String application,
java.lang.String location,
int socketType,
int protocol) |
SshExtendedStreamChannel |
SshClient.createCommand(java.lang.String command)
Execute a command on the remote server.
|
SshHostKeyManager |
SshProvider.createHostKeyManager(SshConfiguration configuration)
Create a
SshHostKeyManager that may be used to list, add and remove
valid host keys. |
SshHostKeyManager |
AbstractProvider.createHostKeyManager(SshConfiguration configuration) |
SshPortForward |
SshClient.createLocalForward(java.lang.String localBindAddress,
int localBindPort,
java.lang.String targetAddress,
int targetPort)
Create a local forward.
|
SshPublicKeySubsystem |
AbstractClient.createPublicKeySubsystem() |
SshPublicKeySubsystem |
SshClient.createPublicKeySubsystem()
Create an instance of a
SshPublicKeySubsystem, if the provider
supports it. |
SshPortForward |
SshClient.createRemoteForward(java.lang.String remoteBindAddress,
int remoteBindPort,
java.lang.String targetAddress,
int targetPort)
Create a remote forward.
|
SshSCPClient |
SshClient.createSCPClient()
Create a new SCP client.
|
SftpClient |
SshClient.createSftpClient()
Create a new SFTP client that may be used to perform file operations.
|
SshShell |
SshClient.createShell(java.lang.String termType,
int cols,
int rows,
int pixWidth,
int pixHeight,
byte[] terminalModes)
Create a new shell.
|
javax.net.SocketFactory |
SshClient.createTunneledSocketFactory()
Create a
SocketFactory whose connections are actually tunneled
over this SSH connection and made from the remote machine. |
void |
SshClient.disconnect()
Disconnect this client.
|
protected abstract void |
AbstractSCPClient.doPut(java.lang.String remotePath,
java.lang.String mode,
java.io.File localfile,
boolean recursive)
Sub-classes should implement this to perform the actual upload of the
file(s).
|
void |
SshSCPClient.get(java.lang.String remoteFilePath,
java.io.File destinationFile,
boolean recursive)
Retrieve file(s) from a remote path, placing it in the destination file
(or directory).
|
byte[] |
SshPublicKey.getEncodedKey()
Get the encoded key bytes.
|
java.lang.String |
SshPublicKey.getFingerprint()
Get the key fingerprint.
|
protected void |
AbstractSCPClient.onClose() |
protected abstract void |
AbstractLifecycleComponentWithEvents.onClose() |
protected void |
AbstractSCPClient.onOpen() |
protected abstract void |
AbstractLifecycleComponentWithEvents.onOpen() |
void |
AbstractLifecycleComponentWithEvents.open() |
void |
SshLifecycleComponent.open()
Open the component.
|
void |
AbstractSCPClient.put(java.lang.String remotePath,
java.lang.String mode,
java.io.File localfile,
boolean recursive) |
void |
SshSCPClient.put(java.lang.String remotePath,
java.lang.String mode,
java.io.File sourceFile,
boolean recursive)
Put a file or directory to a remote path.
|
void |
AbstractClient.removeChannelHandler(SshChannelHandler channelFactory) |
void |
SshClient.removeChannelHandler(SshChannelHandler channelHandler)
Remove a channel handler from the list of those invoked when custom channel creation
requests are received.
|
void |
SshShell.requestPseudoTerminalChange(int width,
int height,
int pixw,
int pixh)
Request that the pseudo terminal attributes are changed.
|
boolean |
SshChannel.sendRequest(java.lang.String requesttype,
boolean wantreply,
byte[] requestdata)
Sends a channel request.
|
byte[] |
SshPrivateKey.sign(byte[] data)
Sign the data using this private key.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SshAgent.addKey(SshKeyPair keyPair,
java.lang.String description)
Add a key to the agent.
|
void |
SshAgent.deleteAllKeys()
Delete all the keys held by the agent.
|
void |
SshAgent.deleteKey(SshPublicKey key,
java.lang.String description)
Delete a key held by the agent
|
byte[] |
SshAgent.getRandomData(int count)
Request some random data from the remote side
|
byte[] |
SshAgent.hashAndSign(SshPublicKey key,
byte[] data)
Request a hash and sign operation be performed for a given public key.
|
java.util.Map |
SshAgent.listKeys()
List all the keys on the agent.
|
boolean |
SshAgent.lockAgent(java.lang.String password)
Lock the agent
|
void |
SshAgent.ping(byte[] padding)
Ping the remote side with some random padding data
|
boolean |
SshAgent.unlockAgent(java.lang.String password)
Unlock the agent
|
| Modifier and Type | Method and Description |
|---|---|
void |
SshPortForward.close()
Close the tunnel.
|
void |
AbstractPortForward.close() |
protected abstract void |
AbstractPortForward.onClose() |
protected abstract void |
AbstractPortForward.onOpen() |
void |
SshPortForward.open()
Open the tunnel.
|
void |
AbstractPortForward.open() |
| Modifier and Type | Method and Description |
|---|---|
void |
SshHostKeyManager.add(SshHostKey hostKey,
boolean persist)
Add a key, optionally persisting it to some kind of backing store.
|
void |
SshHostKeyManager.remove(SshHostKey hostKey)
Remove a key.
|
int |
SshHostKeyValidator.verifyHost(SshHostKey hostKey)
Validate the provided host key and return one of
SshHostKeyValidator.STATUS_HOST_CHANGED, SshHostKeyValidator.STATUS_HOST_KEY_UNKNOWN or
SshHostKeyValidator.STATUS_HOST_KEY_VALID. |
| Modifier and Type | Method and Description |
|---|---|
void |
SshPublicKeySubsystem.add(SshPublicKey key,
java.lang.String comment)
Add a new authorized key.
|
void |
SshPrivateKeyFile.changePassphrase(char[] newPassphrase)
Change the passphrase of this key.
|
SshPrivateKeyFile |
SshIdentityManager.create(SshKeyPair pair,
int format,
char[] passphrase,
java.lang.String comment)
Create a
SshPrivateKeyFile that will allow you obtain a formatted
version of a SshPrivateKey for storage. |
SshPublicKeyFile |
SshIdentityManager.create(SshPublicKey key,
java.lang.String options,
java.lang.String comment,
int format)
Create a Public Key File that may be used to write authorized_keys files
or other public key storage systems.
|
SshPrivateKeyFile |
SshIdentityManager.createPrivateKeyFromStream(java.io.InputStream in)
Parse a stream that provides a private key in some supported format.
|
SshPublicKeyFile |
SshIdentityManager.createPublicKeyFromStream(java.io.InputStream in)
Parse a stream that provides a public key in some supported format.
|
void |
SshPrivateKeyFile.decrypt(char[] passphrase)
Decrypt a formatted key.
|
SshKeyPair |
SshIdentityManager.generateKeyPair(java.lang.String keyType,
int keyBits)
Generate a new key pair.
|
byte[] |
SshPrivateKeyFile.getFormattedKey()
Format the key so it can be written.
|
SshPublicKey |
SshPublicKeyFile.getPublicKey()
Get the actual public key.
|
boolean |
SshPrivateKeyFile.isEncrypted()
Get if this key is currently encrypted.
|
SshPublicKey[] |
SshPublicKeySubsystem.list()
List all of the available authorized keys.
|
void |
SshPublicKeySubsystem.remove(SshPublicKey key)
Remove a key from the list of available authorized keys.
|
SshKeyPair |
SshPrivateKeyFile.toKeyPair()
Get the actual key pair.
|
| Modifier and Type | Method and Description |
|---|---|
SshHostKeyManager |
GanymedSshProvider.createHostKeyManager(SshConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
SshHostKeyManager |
J2SshProvider.createHostKeyManager(SshConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
SshHostKeyManager |
JschSshProvider.createHostKeyManager(SshConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
LibsshClient.authenticate(SshAuthenticator[] authenticators) |
void |
LibsshClient.connect(java.lang.String username,
java.lang.String hostname,
int port) |
SshExtendedStreamChannel |
LibsshClient.createCommand(java.lang.String command) |
SshHostKeyManager |
LibsshSshProvider.createHostKeyManager(SshConfiguration configuration) |
SshPortForward |
LibsshClient.createLocalForward(java.lang.String localAddress,
int localPort,
java.lang.String remoteHost,
int remotePort) |
SshPortForward |
LibsshClient.createRemoteForward(java.lang.String remoteHost,
int remotePort,
java.lang.String localAddress,
int localPort) |
SshSCPClient |
LibsshClient.createSCPClient() |
SftpClient |
LibsshClient.createSftpClient() |
SshShell |
LibsshClient.createShell(java.lang.String termType,
int cols,
int rows,
int pixWidth,
int pixHeight,
byte[] terminalModes) |
javax.net.SocketFactory |
LibsshClient.createTunneledSocketFactory() |
void |
LibsshClient.disconnect() |
protected void |
LibsshSCPClient.doPut(java.lang.String remotePath,
java.lang.String mode,
java.io.File sourceFile,
boolean recursive) |
void |
LibsshSCPClient.get(java.lang.String remoteFilePath,
java.io.File destinationFile,
boolean recursive) |
protected void |
LibsshLocalForward.onClose() |
protected void |
LibsshSCPClient.onClose() |
void |
LibsshShell.onClose() |
protected void |
LibsshLocalForward.onOpen() |
protected void |
LibsshSCPClient.onOpen() |
void |
LibsshShell.onOpen() |
void |
LibsshShell.requestPseudoTerminalChange(int width,
int height,
int pixw,
int pixh) |
| Modifier and Type | Method and Description |
|---|---|
void |
MaverickHostKeyManager.add(SshHostKey hostKey,
boolean persist) |
SshPrivateKeyFile |
MaverickIdentityManager.create(SshKeyPair pair,
int format,
char[] passphrase,
java.lang.String comment) |
SshPublicKeyFile |
MaverickIdentityManager.create(SshPublicKey key,
java.lang.String options,
java.lang.String comment,
int format) |
SshHostKeyManager |
MaverickSshProvider.createHostKeyManager(SshConfiguration configuration) |
SshPrivateKeyFile |
MaverickIdentityManager.createPrivateKeyFromStream(java.io.InputStream in) |
SshPublicKeyFile |
MaverickIdentityManager.createPublicKeyFromStream(java.io.InputStream in) |
SshKeyPair |
MaverickIdentityManager.generateKeyPair(java.lang.String keyType,
int keyBits) |
void |
MaverickHostKeyManager.remove(SshHostKey hostKey) |
| Constructor and Description |
|---|
MaverickHostKeyManager(SshConfiguration configuration)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MaverickHostKeyManager.add(SshHostKey hostKey,
boolean persist) |
void |
MaverickAgent.addKey(SshKeyPair keyPair,
java.lang.String description) |
SshAgent |
MaverickSshProvider.connectToLocalAgent(java.lang.String application,
int protocol) |
SshAgent |
MaverickSshProvider.connectToLocalAgent(java.lang.String application,
java.lang.String location,
int socketType,
int protocol) |
SshPrivateKeyFile |
MaverickIdentityManager.create(SshKeyPair pair,
int format,
char[] passphrase,
java.lang.String comment) |
SshPublicKeyFile |
MaverickIdentityManager.create(SshPublicKey key,
java.lang.String options,
java.lang.String comment,
int format) |
SshHostKeyManager |
MaverickSshProvider.createHostKeyManager(SshConfiguration configuration) |
SshPrivateKeyFile |
MaverickIdentityManager.createPrivateKeyFromStream(java.io.InputStream in) |
SshPublicKeyFile |
MaverickIdentityManager.createPublicKeyFromStream(java.io.InputStream in) |
void |
MaverickAgent.deleteAllKeys() |
void |
MaverickAgent.deleteKey(SshPublicKey key,
java.lang.String description) |
SshKeyPair |
MaverickIdentityManager.generateKeyPair(java.lang.String keyType,
int keyBits) |
byte[] |
MaverickAgent.getRandomData(int count) |
byte[] |
MaverickAgent.hashAndSign(SshPublicKey key,
byte[] data) |
java.util.Map |
MaverickAgent.listKeys() |
boolean |
MaverickAgent.lockAgent(java.lang.String password) |
void |
MaverickAgent.ping(byte[] padding) |
void |
MaverickHostKeyManager.remove(SshHostKey hostKey) |
boolean |
MaverickAgent.unlockAgent(java.lang.String password) |
| Constructor and Description |
|---|
MaverickAgent(java.lang.String application,
java.lang.String location,
int socketType,
int protocol) |
MaverickHostKeyManager(SshConfiguration configuration)
Constructor.
|
MaverickPublicKey(SshPublicKey publicKey) |
| Modifier and Type | Method and Description |
|---|---|
SshHostKeyManager |
TrileadSshProvider.createHostKeyManager(SshConfiguration configuration) |
| Modifier and Type | Class and Description |
|---|---|
class |
SftpException
Specialised
SshException that is thrown by operations in
SftpClient. |
| Modifier and Type | Method and Description |
|---|---|
void |
SftpClient.chgrp(java.lang.String path,
int gid)
Change the owning group of a remote file.
|
void |
SftpClient.chmod(java.lang.String path,
int permissions)
Change the permission of a remove file.
|
void |
SftpClient.chown(java.lang.String path,
int uid)
Change the owner of a remote file.
|
java.io.InputStream |
SftpClient.get(java.lang.String path)
Retrieve the contents of a remote file, presenting it as an input stream.
|
java.io.InputStream |
AbstractSftpClient.get(java.lang.String path) |
java.io.InputStream |
SftpClient.get(java.lang.String path,
long filePointer)
Retrieve the contents of a remote file, presenting it as an input stream.
|
java.io.InputStream |
AbstractSftpClient.get(java.lang.String path,
long filePointer) |
void |
SftpClient.get(java.lang.String path,
java.io.OutputStream out)
Retrieve the contents of a remote file, writing it to the provided output
stream.
|
void |
SftpClient.get(java.lang.String path,
java.io.OutputStream out,
long filePointer)
Retrieve the contents of a remote file, writing it to the provided output
stream.
|
void |
AbstractSftpClient.get(java.lang.String path,
java.io.OutputStream out,
long filePointer) |
java.lang.String |
SftpClient.getDefaultPath()
Get the default path
|
SftpFile[] |
SftpClient.ls(java.lang.String path)
List a directory.
|
void |
SftpClient.mkdir(java.lang.String path,
int permissions)
Create a directory.
|
void |
SftpClient.mkdirs(java.lang.String path,
int permissions)
Create a directory, creating missing parents.
|
void |
AbstractSftpClient.mkdirs(java.lang.String dir,
int permissions)
Default implementation of
AbstractSftpClient.mkdirs(String, int) that uses
SftpClient.mkdir(String, int). |
void |
SftpClient.put(java.lang.String path,
java.io.InputStream in,
int permissions)
Write to a remote from the provided input stream.
|
java.io.OutputStream |
SftpClient.put(java.lang.String path,
int permissions)
Open a remote file for writing to.
|
java.io.OutputStream |
AbstractSftpClient.put(java.lang.String path,
int permissions) |
java.io.OutputStream |
SftpClient.put(java.lang.String path,
int permissions,
long offset)
Open a remote file for writing to.
|
java.io.OutputStream |
AbstractSftpClient.put(java.lang.String path,
int permissions,
long offset) |
void |
SftpClient.rename(java.lang.String path,
java.lang.String newPath)
Rename or move a file.
|
void |
SftpClient.rm(java.lang.String path)
Remove a file given it's path.
|
void |
SftpClient.rmdir(java.lang.String path)
Remove a directory given it's path.
|
void |
SftpClient.setLastModified(java.lang.String path,
long modtime)
Set the last modified time of a file.
|
SftpFile |
SftpClient.stat(java.lang.String path)
Get an SFTP file object (containing all of it's attributes) given a path
in the remote file system.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Util.checkKnownHostsFile(SshConfiguration configuration)
Check the Known Hosts File parent directory exists,
creating it if it does.
|
static java.io.File |
Util.getKnownHostsFile(SshConfiguration configuration)
Get the file to load known host keys from given an
SshConfiguration. |
int |
BatchHostKeyValidator.verifyHost(SshHostKey hostKey) |
int |
DumbHostKeyValidator.verifyHost(SshHostKey hostKey) |
int |
ConsoleHostKeyValidator.verifyHost(SshHostKey hostKey) |
| Modifier and Type | Method and Description |
|---|---|
int |
PromptingKeyValidator.verifyHost(SshHostKey hostKey) |
Copyright © 2018. All rights reserved.