Package org.dellroad.jct.ssh.simple
Class SimpleConsoleSshServer
java.lang.Object
org.dellroad.jct.ssh.simple.SimpleConsoleSshServer
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builder for newSimpleConsoleSshServer
instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.sshd.server.auth.pubkey.PublickeyAuthenticator
protected final Exec
protected final org.apache.sshd.common.keyprovider.KeyPairProvider
protected final int
protected final org.slf4j.Logger
protected final boolean
protected final Shell
protected org.apache.sshd.server.SshServer
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Constructor. -
Method Summary
-
Field Details
-
log
protected final org.slf4j.Logger log -
exec
-
shell
-
listenPort
protected final int listenPort -
loopbackOnly
protected final boolean loopbackOnly -
authenticator
protected final org.apache.sshd.server.auth.pubkey.PublickeyAuthenticator authenticator -
hostKeyProvider
protected final org.apache.sshd.common.keyprovider.KeyPairProvider hostKeyProvider -
sshd
protected org.apache.sshd.server.SshServer sshd
-
-
Constructor Details
-
SimpleConsoleSshServer
Constructor.- Parameters:
builder
- configuration
-
-
Method Details
-
builder
Create an instance builder.- Returns:
- new instance builder
-
start
Start this instance.Does nothing if already started.
- Throws:
IOException
- if an I/O error occurs setting up the listen socket
-
stop
public void stop()Stop this instance. -
close
public void close()Close this instance.Delegates to
stop()
.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-