public class VanillaSSHD extends SshEngine implements ProtocolContextFactory<SshServerContext>
An example server that fulfils the basic requirements of the Maverick SSHD.
To create a server simply extend the com.sshtools.sshd.SshDaemon
class and configure the server to your requirements inside the
com.sshtools.sshd.SshDaemon#configure(ConfigurationContext)
method.
For further information on configuration see the
com.sshtools.sshd.ConfigurationContext
documentation.
Constructor and Description |
---|
VanillaSSHD() |
Modifier and Type | Method and Description |
---|---|
SshServerContext |
createContext(SshEngineContext daemonContext,
SocketChannel sc) |
static void |
main(String[] args) |
addListener, addShutdownHook, connect, getContext, getLastError, getReleaseDate, getVersion, isStarted, isStarting, processOpenSocket, registerAcceptor, registerConnector, registerHandler, registerHandler, removeAcceptor, removeListener, restart, restart, shutdownAsync, shutdownNow, startListeningInterface, startup
public VanillaSSHD() throws SshException
SshException
public SshServerContext createContext(SshEngineContext daemonContext, SocketChannel sc) throws IOException, SshException
createContext
in interface ProtocolContextFactory<SshServerContext>
IOException
SshException
Copyright © 2016. All rights reserved.