class documentation
class RekeyAvatar(ConchUser): (source)
Implements interfaces: twisted.conch.interfaces.ISession
This avatar implements a shell which sends 60 numbered lines to whatever connects to it, then closes the session with a 0 exit status.
60 lines is selected as being enough to send more than 2kB of traffic, the amount the client is configured to initiate a rekey after.
Method | __init__ |
Undocumented |
Method | closed |
Ignore the close of the session. |
Method | eof |
Called when the other side has indicated no more data will be sent. |
Method | exec |
Execute a command. |
Method | get |
Get a pseudo-terminal for use by a shell or command. |
Method | open |
Write 60 lines of data to the transport, then exit. |
Method | window |
Called when the size of the remote screen has changed. |
Inherited from ConchUser
:
Method | conn |
Undocumented |
Method | got |
A global request was sent from the other side. |
Method | lookup |
The other side requested a channel of some sort. |
Method | lookup |
The other side requested a subsystem. |
Instance Variable | channel |
Undocumented |
Instance Variable | subsystem |
Undocumented |
Property | conn |
The SSHConnection object for this user. |
Class Variable | _log |
Undocumented |
Instance Variable | _conn |
Undocumented |
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.