Interface Session

All Superinterfaces:
AutoCloseable, Channel, Closeable, ErrorNotifiable, SSHPacketHandler
All Known Implementing Classes:
SessionChannel

public interface Session extends Channel
A session channel provides for execution of a remote command, shell or subsystem. Before this requests like starting X11 forwarding, setting environment variables, allocating a PTY etc. can be made.

It is not legal to reuse a session channel for more than one of command, shell, or subsystem. Once one of these has been started this instance's API is invalid and that of the specific targets returned should be used.

See Also: