Interface SessionFactory
- All Superinterfaces:
RemoteAddressProvider
- All Known Implementing Classes:
SSHClient
A factory interface for creating SSH
session channels
.-
Method Summary
Methods inherited from interface com.hierynomus.sshj.common.RemoteAddressProvider
getRemoteSocketAddress
-
Method Details
-
startSession
Opens asession
channel. The returnedSession
instance allowsexecuting a remote command
,starting a subsystem
, orstarting a shell
.- Returns:
- the opened
session
channel - Throws:
SSHException
- Thrown on session initialization failures- See Also:
-