Implements interfaces: twisted.conch.interfaces.ISession

Undocumented
Method __init__ Construct an SSHSessionForUnixConchUser.
Instance Variable avatar Undocumented
Instance Variable environ Undocumented
Instance Variable pty Undocumented
Instance Variable ptyTuple Undocumented
Method addUTMPEntry Undocumented
Method getPty Get a pseudo-terminal for use by a shell or command.
Instance Variable winSize Undocumented
Instance Variable modes Undocumented
Method openShell Open a shell and connect it to proto.
Instance Variable oldWrite Undocumented
Method execCommand Execute a command.
Method getPtyOwnership Undocumented
Method setModes Undocumented
Method eofReceived Called when the other side has indicated no more data will be sent.
Method closed Called when the session is closed.
Method windowChanged Called when the size of the remote screen has changed.
Instance Variable _reactor Undocumented
Method _writeHack Hack to send ignore messages when we aren't echoing.
def __init__(self, avatar, reactor=None): (source)

Construct an SSHSessionForUnixConchUser.

ParametersavatarThe UnixConchUser for whom this is an SSH session.
reactorAn IReactorProcess used to handle shell and exec requests. Uses the default reactor if None.
_reactor =
Undocumented
avatar =
Undocumented
environ =
Undocumented
(type: Dict[str, str])
pty =
Undocumented
ptyTuple =
Undocumented
def addUTMPEntry(self, loggedIn=1): (source)
Undocumented
def getPty(self, term, windowSize, modes): (source)

Get a pseudo-terminal for use by a shell or command.

If a pseudo-terminal is not available, or the request otherwise fails, raise an exception.

winSize =
Undocumented
modes =
Undocumented
def openShell(self, proto): (source)

Open a shell and connect it to proto.

Parametersprotoa ProcessProtocol instance.
oldWrite =
Undocumented
def execCommand(self, proto, cmd): (source)

Execute a command.

Parametersprotoa ProcessProtocol instance.
def getPtyOwnership(self): (source)
Undocumented
def setModes(self): (source)
Undocumented
def eofReceived(self): (source)

Called when the other side has indicated no more data will be sent.

def closed(self): (source)

Called when the session is closed.

def windowChanged(self, winSize): (source)

Called when the size of the remote screen has changed.

def _writeHack(self, data): (source)

Hack to send ignore messages when we aren't echoing.

API Documentation for Twisted, generated by pydoctor at 2020-03-20 23:54:06.