Reformat + fix links

This commit is contained in:
Jeff Forcier 2014-02-24 17:21:12 -08:00
parent a00316af15
commit 0bf0f08ee4
1 changed files with 18 additions and 16 deletions

View File

@ -360,27 +360,29 @@ class Transport (threading.Thread):
Otherwise an SSHException is raised. Otherwise an SSHException is raised.
After a successful negotiation, the client will need to authenticate. After a successful negotiation, the client will need to authenticate.
Override the methods Override the methods `get_allowed_auths
`get_allowed_auths <ServerInterface.get_allowed_auths>`, <.ServerInterface.get_allowed_auths>`, `check_auth_none
`check_auth_none <ServerInterface.check_auth_none>`, <.ServerInterface.check_auth_none>`, `check_auth_password
`check_auth_password <ServerInterface.check_auth_password>`, and <.ServerInterface.check_auth_password>`, and `check_auth_publickey
`check_auth_publickey <ServerInterface.check_auth_publickey>` in the <.ServerInterface.check_auth_publickey>` in the given ``server`` object
given ``server`` object to control the authentication process. to control the authentication process.
After a successful authentication, the client should request to open After a successful authentication, the client should request to open a
a channel. Override channel. Override `check_channel_request
`check_channel_request <ServerInterface.check_channel_request>` in the <.ServerInterface.check_channel_request>` in the given ``server``
given ``server`` object to allow channels to be opened. object to allow channels to be opened.
.. note:: After calling this method (or `start_client` or `connect`), .. note::
you should no longer directly read from or write to the original After calling this method (or `start_client` or `connect`), you
socket object. should no longer directly read from or write to the original socket
object.
:param event: an event to trigger when negotiation is complete. :param event: an event to trigger when negotiation is complete.
:type event: threading.Event :type event: threading.Event
:param server: an object used to perform authentication and create :param server:
`channels <Channel>` an object used to perform authentication and create `channels
:type server: `server.ServerInterface` <.Channel>`
:type server: `.ServerInterface`
:raises SSHException: if negotiation fails (and no ``event`` was passed :raises SSHException: if negotiation fails (and no ``event`` was passed
in) in)