Package | Description |
---|---|
org.apache.sshd.client | |
org.apache.sshd.client.keyverifier | |
org.apache.sshd.client.session |
Modifier and Type | Field and Description |
---|---|
static ServerKeyVerifier |
ClientBuilder.DEFAULT_SERVER_KEY_VERIFIER |
private ServerKeyVerifier |
SshClient.serverKeyVerifier |
protected ServerKeyVerifier |
ClientBuilder.serverKeyVerifier |
Modifier and Type | Method and Description |
---|---|
ServerKeyVerifier |
SshClient.getServerKeyVerifier() |
ServerKeyVerifier |
ClientAuthenticationManager.getServerKeyVerifier()
Retrieve the server key verifier to be used to check the key when connecting to an SSH server.
|
Modifier and Type | Method and Description |
---|---|
ClientBuilder |
ClientBuilder.serverKeyVerifier(ServerKeyVerifier serverKeyVerifier) |
void |
SshClient.setServerKeyVerifier(ServerKeyVerifier serverKeyVerifier) |
void |
ClientAuthenticationManager.setServerKeyVerifier(ServerKeyVerifier serverKeyVerifier) |
Modifier and Type | Class and Description |
---|---|
class |
AcceptAllServerKeyVerifier
A ServerKeyVerifier that accepts all server keys.
|
class |
DefaultKnownHostsServerKeyVerifier
Monitors the
~/.ssh/known_hosts file of the user currently running the client, updating and re-loading it if
necessary. |
class |
DelegatingServerKeyVerifier
A
ServerKeyVerifier that delegates verification to the instance found in the ClientSession metadata
The verifier can be specified at the SshClient level, which may have connections to multiple hosts. |
class |
KnownHostsServerKeyVerifier |
class |
RejectAllServerKeyVerifier |
class |
RequiredServerKeyVerifier
A ServerKeyVerifier that accepts one server key (specified in the constructor)
|
class |
StaticServerKeyVerifier
Returns the same constant answer
true/false regardless |
Modifier and Type | Field and Description |
---|---|
private ServerKeyVerifier |
KnownHostsServerKeyVerifier.delegate |
Modifier and Type | Method and Description |
---|---|
ServerKeyVerifier |
KnownHostsServerKeyVerifier.getDelegateVerifier() |
Constructor and Description |
---|
DefaultKnownHostsServerKeyVerifier(ServerKeyVerifier delegate) |
DefaultKnownHostsServerKeyVerifier(ServerKeyVerifier delegate,
boolean strict) |
DefaultKnownHostsServerKeyVerifier(ServerKeyVerifier delegate,
boolean strict,
java.io.File file) |
DefaultKnownHostsServerKeyVerifier(ServerKeyVerifier delegate,
boolean strict,
java.nio.file.Path file,
java.nio.file.LinkOption... options) |
KnownHostsServerKeyVerifier(ServerKeyVerifier delegate,
java.nio.file.Path file) |
KnownHostsServerKeyVerifier(ServerKeyVerifier delegate,
java.nio.file.Path file,
java.nio.file.LinkOption... options) |
Modifier and Type | Field and Description |
---|---|
private ServerKeyVerifier |
AbstractClientSession.serverKeyVerifier |
Modifier and Type | Method and Description |
---|---|
ServerKeyVerifier |
AbstractClientSession.getServerKeyVerifier() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractClientSession.setServerKeyVerifier(ServerKeyVerifier serverKeyVerifier) |