Interface SessionFactory
-
- All Superinterfaces:
RemoteAddressProvider
- All Known Implementing Classes:
SSHClient
public interface SessionFactory extends RemoteAddressProvider
A factory interface for creating SSHsession channels.
-
-
Method Summary
Modifier and Type Method Description SessionstartSession()Opens asessionchannel.-
Methods inherited from interface com.hierynomus.sshj.common.RemoteAddressProvider
getRemoteSocketAddress
-
-
-
-
Method Detail
-
startSession
Session startSession() throws SSHException
Opens asessionchannel. The returnedSessioninstance allowsexecuting a remote command,starting a subsystem, orstarting a shell.- Returns:
- the opened
sessionchannel - Throws:
SSHException- Thrown on session initialization failures- See Also:
Session
-
-