Skip to content

Commit 0e9a5a4

Browse files
committed
Move module level docstring into Sphinx docs
1 parent f836c98 commit 0e9a5a4

File tree

2 files changed

+22
-32
lines changed

2 files changed

+22
-32
lines changed

paramiko/__init__.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -16,38 +16,6 @@
1616
# along with Paramiko; if not, write to the Free Software Foundation, Inc.,
1717
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
1818

19-
"""
20-
Paramiko (a combination of the esperanto words for "paranoid" and "friend")
21-
is a module for python 2.5 or greater that implements the SSH2 protocol for
22-
secure (encrypted and authenticated) connections to remote machines. Unlike
23-
SSL (aka TLS), the SSH2 protocol does not require hierarchical certificates
24-
signed by a powerful central authority. You may know SSH2 as the protocol that
25-
replaced ``telnet`` and ``rsh`` for secure access to remote shells, but the
26-
protocol also includes the ability to open arbitrary channels to remote
27-
services across an encrypted tunnel. (This is how ``sftp`` works, for example.)
28-
29-
The high-level client API starts with creation of an `.SSHClient` object.
30-
For more direct control, pass a socket (or socket-like object) to a
31-
`.Transport`, and use `start_server <.Transport.start_server>` or
32-
`start_client <.Transport.start_client>` to negoatite
33-
with the remote host as either a server or client. As a client, you are
34-
responsible for authenticating using a password or private key, and checking
35-
the server's host key. (Key signature and verification is done by paramiko,
36-
but you will need to provide private keys and check that the content of a
37-
public key matches what you expected to see.) As a server, you are
38-
responsible for deciding which users, passwords, and keys to allow, and what
39-
kind of channels to allow.
40-
41-
Once you have finished, either side may request flow-controlled `channels <Channel>`
42-
to the other side, which are python objects that act like sockets, but send and
43-
receive data over the encrypted session.
44-
45-
Paramiko is written entirely in python (no C or platform-dependent code) and is
46-
released under the GNU Lesser General Public License (LGPL).
47-
48-
Website: https://github.com/paramiko/paramiko/
49-
"""
50-
5119
import sys
5220

5321
if sys.version_info < (2, 5):

sites/docs/index.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,28 @@ please see `the main website <http://paramiko.org>`_.
1010
API documentation
1111
=================
1212

13+
The high-level client API starts with creation of an `.SSHClient` object. For
14+
more direct control, pass a socket (or socket-like object) to a `.Transport`,
15+
and use `start_server <.Transport.start_server>` or `start_client
16+
<.Transport.start_client>` to negotiate with the remote host as either a server
17+
or client.
18+
19+
As a client, you are responsible for authenticating using a password or private
20+
key, and checking the server's host key. (Key signature and verification is
21+
done by paramiko, but you will need to provide private keys and check that the
22+
content of a public key matches what you expected to see.)
23+
24+
As a server, you are responsible for deciding which users, passwords, and keys
25+
to allow, and what kind of channels to allow.
26+
27+
Once you have finished, either side may request flow-controlled `channels
28+
<.Channel>` to the other side, which are Python objects that act like sockets,
29+
but send and receive data over the encrypted session.
30+
31+
For details, please see the following tables of contents (which are organized
32+
by area of interest.)
33+
34+
1335
Core SSH protocol classes
1436
-------------------------
1537

0 commit comments

Comments
 (0)