public interface

SessionFactory

net.schmizz.sshj.connection.channel.direct.SessionFactory
Known Indirect Subclasses

Class Overview

A factory interface for creating SSH session channels.

Summary

Public Methods
abstract Session startSession()
Opens a session channel.

Public Methods

public abstract Session startSession ()

Opens a session channel. The returned Session instance allows executing a remote command, starting a subsystem, or starting a shell.

Returns
  • the opened session channel
Throws
SSHException
See Also