Interface SessionFactory
-
- All Superinterfaces:
RemoteAddressProvider
- All Known Implementing Classes:
SSHClient
public interface SessionFactory extends RemoteAddressProvider
A factory interface for creating SSHsession channels
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Session
startSession()
Opens asession
channel.-
Methods inherited from interface com.hierynomus.sshj.common.RemoteAddressProvider
getRemoteSocketAddress
-
-
-
-
Method Detail
-
startSession
Session startSession() throws SSHException
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:
Session
-
-