From ed280d5ac360e2af796e9bd973d7b4df89f0c449 Mon Sep 17 00:00:00 2001
From: "Jeremy T. Bouse" This document contains the API (Application Programming Interface)
-documentation for this project. Documentation for the Python
-objects defined by the project is divided into separate pages for each
-package, module, and class. The API documentation also includes two
-pages containing information about the project as a whole: a trees
-page, and an index page. Each Package Documentation page contains:
-
-
-
-
- Home
- Trees
- Index
- Help
-
-
-
-
-
-
-
-
- Module __builtin__ ::
- Class object
-
-
-
-
-
- [show private | hide private]
- [frames | no frames] Type object
-
-
-
-BufferedFile
,
- Channel
,
- InteractiveQuery
,
- Message
,
- PFilter
,
- SecurityOptions
,
- SFTPAttributes
,
- SFTPHandle
,
- type
,
- _Verbose
,
- AuthHandler
,
- BaseSFTP
,
- BER
,
- Formatter
,
- KexGex
,
- KexGroup1
,
- logger
,
- ModulusPack
,
- Packetizer
,
- PKey
,
- PosixPipe
,
- ServerInterface
,
- SFTPServerInterface
,
- StreamHandler
,
- WindowsPipe
,
- ZlibCompressor
,
- ZlibDecompressor
-
-The most base type
-
-
-
-
-
-
-
-Method Summary
-
-
-__init__
(...)
-x.__init__(...) initializes x; see x.__class__.__doc__ for
-signature
-
-
-__delattr__
(...)
-x.__delattr__('name') <==> del x.name
-
-
-__getattribute__
(...)
-x.__getattribute__('name') <==> x.name
-
-
-__hash__
(x)
-x.__hash__() <==> hash(x)
-
-
-__new__
(T,
- S,
- ...)
-T.__new__(S, ...) -> a new object with type S, a subtype of T
-
-
-__reduce__
(...)
-helper for pickle
-
-
-__reduce_ex__
(...)
-helper for pickle
-
-
-__repr__
(x)
-x.__repr__() <==> repr(x)
-
-
-__setattr__
(...)
-x.__setattr__('name', value) <==> x.name = value
-
-
-__str__
(x)
-x.__str__() <==> str(x)
-
-
-
-
-
-
-Class Variable Summary
-
- type
__class__
= __builtin__.type
-
-
-
-
-
-
-
-
-
-Method Details
-
-
-
- __init__(...)
-
- x.__init__(...) initializes x; see x.__class__.__doc__ for
- signature
-
(Constructor)
-
-
-
-
-
- __delattr__(...)
-
- x.__delattr__('name') <==> del x.name
-
-
-
-
-
- __getattribute__(...)
-
- x.__getattribute__('name') <==> x.name
-
-
-
-
-
- __hash__(x)
-
- x.__hash__() <==> hash(x)
-
(Hashing function)
-
-
-
-hash(x)
-
-
-
-
-
- __new__(T,
- S,
- ...)
-
- T.__new__(S, ...) -> a new object with type S, a subtype of T
-
-
-
-a new object with type S, a subtype of T
-
-
-
-
-
- __reduce__(...)
-
- helper for pickle
-
-
-
-
-
- __reduce_ex__(...)
-
- helper for pickle
-
-
-
-
-
- __repr__(x)
-
- x.__repr__() <==> repr(x)
-
(Representation operator)
-
-
-
-repr(x)
-
-
-
-
-
- __setattr__(...)
-
- x.__setattr__('name', value) <==> x.name = value
-
-
-
- __str__(x)
-
- x.__str__() <==> str(x)
-
(Informal representation operator)
-
-
-
-str(x)
-
-
-
-
-
-
-
-
-
-
- Home
- Trees
- Index
- Help
-
-
-
-
-
diff --git a/docs/private/__builtin__.type-class.html b/docs/private/__builtin__.type-class.html
deleted file mode 100644
index 0f1957a..0000000
--- a/docs/private/__builtin__.type-class.html
+++ /dev/null
@@ -1,504 +0,0 @@
-
-
-
-
-
-
-Generated by Epydoc 2.1 on Sun Dec 4 11:16:46 2005
- http://epydoc.sf.net
-
-
-
-
- Home
- Trees
- Index
- Help
-
-
-
-
-
-
-
-
- Module __builtin__ ::
- Class type
-
-
-
-
-
- [show private | hide private]
- [frames | no frames] Type type
-
-
-
object
--+
- |
- type
-
-
-
-
-type(object) -> the object's type type(name, bases, dict) -> a
-new type
-
-
-
-
-
-
-
-Method Summary
-
-
-__call__
(x,
- ...)
-x.__call__(...) <==> x(...)
-
-
-__cmp__
(x,
- y)
-x.__cmp__(y) <==> cmp(x,y)
-
-
-__delattr__
(...)
-x.__delattr__('name') <==> del x.name
-
-
-__getattribute__
(...)
-x.__getattribute__('name') <==> x.name
-
-
-__hash__
(x)
-x.__hash__() <==> hash(x)
-
-
-__new__
(T,
- S,
- ...)
-T.__new__(S, ...) -> a new object with type S, a subtype of T
-
-
-__repr__
(x)
-x.__repr__() <==> repr(x)
-
-
-__setattr__
(...)
-x.__setattr__('name', value) <==> x.name = value
-list of immediate subclasses
-
-__subclasses__
()
-__subclasses__() -> list of immediate subclasses
-list
-
-mro
()
-return a type's method resolution order
-
- Inherited from object
-
-
-__init__
(...)
-x.__init__(...) initializes x; see x.__class__.__doc__ for
-signature
-
-
-__reduce__
(...)
-helper for pickle
-
-
-__reduce_ex__
(...)
-helper for pickle
-
-
-__str__
(x)
-x.__str__() <==> str(x)
-
-
-
-
-
-
-Class Variable Summary
-
- type
__base__
= __builtin__.object
-
-tuple
__bases__
= (<type 'object'>,)
-
-
-int
__basicsize__
= 420
-
-int
__dictoffset__
= 132
-
-int
__flags__
= 21995
-
-int
__itemsize__
= 20
-
-tuple
__mro__
= (<type 'type'>, <type 'object'>)
-
-
-str
__name__
= 'type'
-
-
-int
__weakrefoffset__
= 184
-
-
-
-
-
-
-
-
-
-Method Details
-
-
-
- __call__(x,
- ...)
-
- x.__call__(...) <==> x(...)
-
(Call operator)
-
-
-
-x(...)
-
-
-
-
-
- __cmp__(x,
- y)
-
- x.__cmp__(y) <==> cmp(x,y)
-
(Comparison operator)
-
-
-
-cmp(x,y)
-
-
-
-
-
- __delattr__(...)
-
- x.__delattr__('name') <==> del x.name
-
-
- __builtin__.object.__delattr__
-
-
-
- __getattribute__(...)
-
- x.__getattribute__('name') <==> x.name
-
-
- __builtin__.object.__getattribute__
-
-
-
- __hash__(x)
-
- x.__hash__() <==> hash(x)
-
(Hashing function)
-
-
-
-hash(x)
-
-
- __builtin__.object.__hash__
-
-
-
- __new__(T,
- S,
- ...)
-
- T.__new__(S, ...) -> a new object with type S, a subtype of T
-
-
-
-a new object with type S, a subtype of T
-
-
- __builtin__.object.__new__
-
-
-
- __repr__(x)
-
- x.__repr__() <==> repr(x)
-
(Representation operator)
-
-
-
-repr(x)
-
-
- __builtin__.object.__repr__
-
-
-
- __setattr__(...)
-
- x.__setattr__('name', value) <==> x.name = value
-
-
- __builtin__.object.__setattr__
-
-
-
- __subclasses__()
-
- __subclasses__() -> list of immediate subclasses
-
-
-
-
- mro()
-
- return a type's method resolution order
-
-
-
-
-
-
-
-
-
-
-Class Variable Details
-
-
- __bases__
-
-
-
-
- tuple
-
-
-
-(<type 'object'>,)
-
-
-
- __basicsize__
-
-
-
-
- int
-
-
-
-420
-
-
-
- __dictoffset__
-
-
-
-
- int
-
-
-
-132
-
-
-
- __flags__
-
-
-
-
- int
-
-
-
-21995
-
-
-
- __itemsize__
-
-
-
-
- int
-
-
-
-20
-
-
-
- __mro__
-
-
-
-
- tuple
-
-
-
-(<type 'type'>, <type 'object'>)
-
-
-
- __name__
-
-
-
-
- str
-
-
-
-'type'
-
-
-
- __weakrefoffset__
-
-
-
-
- int
-
-
-
-184
-
-
-
-
-
-
-
-
-
- Home
- Trees
- Index
- Help
-
-
-
-
-
diff --git a/docs/private/epydoc.css b/docs/private/epydoc.css
deleted file mode 100644
index 46080bd..0000000
--- a/docs/private/epydoc.css
+++ /dev/null
@@ -1,100 +0,0 @@
-
-/* Body color */
-body { background: #ffffff; color: #000000; }
-
-/* Tables */
-table.summary, table.details, table.index
- { background: #e8f0f8; color: #000000; }
-tr.summary, tr.details, tr.index
- { background: #70b0f0; color: #000000;
- text-align: left; font-size: 120%; }
-tr.group { background: #c0e0f8; color: #000000;
- text-align: left; font-size: 120%;
- font-style: italic; }
-
-/* Documentation page titles */
-h2.module { margin-top: 0.2em; }
-h2.class { margin-top: 0.2em; }
-
-/* Headings */
-h1.heading { font-size: +140%; font-style: italic;
- font-weight: bold; }
-h2.heading { font-size: +125%; font-style: italic;
- font-weight: bold; }
-h3.heading { font-size: +110%; font-style: italic;
- font-weight: normal; }
-
-/* Base tree */
-pre.base-tree { font-size: 80%; margin: 0; }
-
-/* Details Sections */
-table.func-details { background: #e8f0f8; color: #000000;
- border: 2px groove #c0d0d0;
- padding: 0 1em 0 1em; margin: 0.4em 0 0 0; }
-h3.func-detail { background: transparent; color: #000000;
- margin: 0 0 1em 0; }
-
-table.var-details { background: #e8f0f8; color: #000000;
- border: 2px groove #c0d0d0;
- padding: 0 1em 0 1em; margin: 0.4em 0 0 0; }
-h3.var-details { background: transparent; color: #000000;
- margin: 0 0 1em 0; }
-
-/* Function signatures */
-.sig { background: transparent; color: #000000;
- font-weight: bold; }
-.sig-name { background: transparent; color: #006080; }
-.sig-arg, .sig-kwarg, .sig-vararg
- { background: transparent; color: #008060; }
-.sig-default { background: transparent; color: #602000; }
-.summary-sig { background: transparent; color: #000000; }
-.summary-sig-name { background: transparent; color: #204080; }
-.summary-sig-arg, .summary-sig-kwarg, .summary-sig-vararg
- { background: transparent; color: #008060; }
-
-/* Doctest blocks */
-.py-src { background: transparent; color: #000000; }
-.py-prompt { background: transparent; color: #005050;
- font-weight: bold;}
-.py-string { background: transparent; color: #006030; }
-.py-comment { background: transparent; color: #003060; }
-.py-keyword { background: transparent; color: #600000; }
-.py-output { background: transparent; color: #404040; }
-pre.doctestblock { background: #f4faff; color: #000000;
- padding: .5em; margin: 1em;
- border: 1px solid #708890; }
-table pre.doctestblock
- { background: #dce4ec; color: #000000;
- padding: .5em; margin: 1em;
- border: 1px solid #708890; }
-
-/* Variable values */
-pre.variable { background: #dce4ec; color: #000000;
- padding: .5em; margin: 0;
- border: 1px solid #708890; }
-.variable-linewrap { background: transparent; color: #604000; }
-.variable-ellipsis { background: transparent; color: #604000; }
-.variable-quote { background: transparent; color: #604000; }
-.re { background: transparent; color: #000000; }
-.re-char { background: transparent; color: #006030; }
-.re-op { background: transparent; color: #600000; }
-.re-group { background: transparent; color: #003060; }
-.re-ref { background: transparent; color: #404040; }
-
-/* Navigation bar */
-table.navbar { background: #a0c0ff; color: #0000ff;
- border: 2px groove #c0d0d0; }
-th.navbar { background: #a0c0ff; color: #0000ff; }
-th.navselect { background: #70b0ff; color: #000000; }
-.nomargin { margin: 0; }
-
-/* Links */
-a:link { background: transparent; color: #0000ff; }
-a:visited { background: transparent; color: #204080; }
-a.navbar:link { background: transparent; color: #0000ff;
- text-decoration: none; }
-a.navbar:visited { background: transparent; color: #204080;
- text-decoration: none; }
-
-/* Lists */
-ul { margin-top: 0; }
diff --git a/docs/private/exceptions.Exception-class.html b/docs/private/exceptions.Exception-class.html
deleted file mode 100644
index 4b99d99..0000000
--- a/docs/private/exceptions.Exception-class.html
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
-
-
-
-
-Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005
- http://epydoc.sf.net
-
-
-
-
- Home
- Trees
- Index
- Help
-
-
-
-
-
-
-
-
- Module exceptions ::
- Class Exception
-
-
-
-
-
- [show private | hide private]
- [frames | no frames] Class Exception
-
-
-
-SFTPError
,
- SSHException
,
- BERException
,
- NeedRekeyException
-
-Common base class for all exceptions.
-
-
-
-
-
-
-
-Method Summary
-
- __init__(...)
-
-
- __getitem__(...)
-
-
- __str__(...)
-
-
-
-
-
-
-
-
-
- Home
- Trees
- Index
- Help
-
-
-
-
-
diff --git a/docs/private/frames.html b/docs/private/frames.html
deleted file mode 100644
index 77678a0..0000000
--- a/docs/private/frames.html
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005
- http://epydoc.sf.net
-
-
-
-
- Home
- Trees
- Index
- Help
-
-
-
-
-
-
-
-
-
-
- [show private | hide private]
- [frames | no frames] API Documentation
Object Documentation
-
-
-
Each Module Documentation page contains: -
Each Class Documentation page contains: -
The Trees page contains the module and class hierarchies: -
The Index page contains indices of terms and - identifiers: -
The table of contents occupies the two frames on the left side of -the window. The upper-left frame displays the project -contents, and the lower-left frame displays the module -contents:
- -
- Project Contents ... |
-
- API Documentation Frame - |
-
- Module Contents ... - |
-
The project contents frame contains a list of all packages -and modules that are defined by the project. Clicking on an entry -will display its contents in the module contents frame. Clicking on a -special entry, labeled "Everything," will display the contents of -the entire project.
- -The module contents frame contains a list of every -submodule, class, type, exception, function, and variable defined by a -module or package. Clicking on an entry will display its -documentation in the API documentation frame. Clicking on the name of -the module, at the top of the frame, will display the documentation -for the module itself.
- -The "frames" and "no frames" buttons below the top -navigation bar can be used to control whether the table of contents is -displayed or not.
- -A navigation bar is located at the top and bottom of every page. -It indicates what type of page you are currently viewing, and allows -you to go to related pages. The following table describes the labels -on the navigation bar. Note that not some labels (such as -[Parent]) are not displayed on all pages.
- -Label | -Highlighted when... | -Links to... | -
---|---|---|
[Parent] | -(never highlighted) | -the parent of the current package |
[Package] | -viewing a package | -the package containing the current object - |
[Module] | -viewing a module | -the module containing the current object - |
[Class] | -viewing a class | -the class containing the current object |
[Trees] | -viewing the trees page | -the trees page |
[Index] | -viewing the index page | -the index page |
[Help] | -viewing the help page | -the help page |
The "show private" and "hide private" buttons below
-the top navigation bar can be used to control whether documentation
-for private objects is displayed. Private objects are usually defined
-as objects whose (short) names begin with a single underscore, but do
-not end with an underscore. For example, "_x
",
-"__pprint
", and "epydoc.epytext._tokenize
"
-are private objects; but "re.sub
",
-"__init__
", and "type_
" are not. However,
-if a module defines the "__all__
" variable, then its
-contents are used to decide which objects are private.
A timestamp below the bottom navigation bar indicates when each -page was last updated.
- - -Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:48 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- | -
|
-
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:48 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko - - | -
|
-
Paramiko (a combination of the esperanto words for
-"paranoid" and "friend") is a module for python 2.3
-or greater that implements the SSH2 protocol for secure (encrypted and
-authenticated) connections to remote machines. Unlike SSL (aka TLS), the
-SSH2 protocol does not require heirarchical certificates signed by a
-powerful central authority. You may know SSH2 as the protocol that
-replaced telnet
and rsh
for secure access to
-remote shells, but the protocol also includes the ability to open
-arbitrary channels to remote services across an encrypted tunnel. (This
-is how sftp
works, for example.)
To use this package, pass a socket (or socket-like object) to a Transport
, and use start_server
or start_client
to negoatite with the remote
-host as either a server or client. As a client, you are responsible for
-authenticating using a password or private key, and checking the server's
-host key. (Key signature and verification is done by paramiko, but you
-will need to provide private keys and check that the content of a public
-key matches what you expected to see.) As a server, you are
-responsible for deciding which users, passwords, and keys to allow, and
-what kind of channels to allow.
Once you have finished, either side may request flow-controlled Channel
s
-to the other side, which are python objects that act like sockets, but
-send and receive data over the encrypted session.
Paramiko is written entirely in python (no C or platform-dependent -code) and is released under the GNU Lesser General Public License -(LGPL).
-Website: http://www.lag.net/paramiko/ -Version: 1.5.2 (rhydon) -
- -Author: Robey Pointer -
- -Contact: robey@lag.net -
- -License: GNU Lesser General Public License (LGPL) -
- - - -Submodules | |
---|---|
|
Classes | |
---|---|
- Agent |
- Client interface for using private keys from an SSH agent running on -the local machine. |
- AgentKey |
- Private key held in a local SSH agent. |
- BufferedFile |
- Reusable base class to implement python-style file buffering around a -simpler stream. |
- Channel |
- A secure tunnel across an SSH Transport . |
- DSSKey |
- Representation of a DSS key which can be used to sign an verify SSH2 -data. |
- Message |
- An SSH2 Message is a stream of bytes that encodes some -combination of strings, integers, bools, and infinite-precision integers -(known in python as longs). |
- RSAKey |
- Representation of an RSA key which can be used to sign and verify SSH2 -data. |
- SecurityOptions |
- Simple object containing the security preferences of an ssh -transport. |
- SFTP |
- an alias for SFTPClient for backwards compatability |
- SFTPAttributes |
- Representation of the attributes of a file (or proxied file) for SFTP -in client or server mode. |
- SFTPClient |
- SFTP client object. |
- SFTPFile |
- Proxy object for a file on the remote server, in client mode SFTP. |
- SFTPHandle |
- Abstract object representing a handle to an open file (or folder) in -an SFTP server implementation. |
- SFTPServer |
- Server-side SFTP subsystem support. |
- SubsystemHandler |
- Handler for a subsytem in server mode. |
- Transport |
- An SSH Transport attaches to a stream (usually a socket), negotiates
-an encrypted session, authenticates, and then creates stream tunnels,
-called Channel s, across the session. |
- AuthHandler |
- Internal class to handle the mechanics of authentication. |
- BaseSFTP |
- |
- ChannelFile |
- A file-like wrapper around Channel . |
- Packetizer |
- Implementation of the base SSH packet protocol. |
- PKey |
- Base class for public keys. |
- ServerInterface |
- This class defines an interface for controlling the behavior of -paramiko in server mode. |
- SFTPServerInterface |
- This class defines an interface for controlling the behavior of
-paramiko when using the SFTPServer subsystem to provide an SFTP
-server. |
- x |
- This class defines an interface for controlling the behavior of -paramiko in server mode. |
Exceptions | |
---|---|
- BadAuthenticationType |
- Exception raised when an authentication type (like password) is used, -but the server isn't allowing that type. |
- PasswordRequiredException |
- Exception raised when a password is needed to unlock a private key -file. |
- SFTPError |
- |
- SSHException |
- Exception raised by failures in SSH2 protocol negotiation or logic -errors. |
Variable Summary | |
---|---|
str |
-__author__ = 'Robey Pointer <robey@lag.net>'
- |
str |
-__date__ = '04 Dec 2005'
- |
str |
-__license__ = 'GNU Lesser General Public License (LGPL)'...
- |
str |
-__version__ = '1.5.2 (rhydon)'
- |
tuple |
-__version_info__ = (1, 5, 2)
- |
Variable Details |
---|
-
-__author__-
|
-
-__date__-
|
-
-__license__-
|
-
-__version__-
|
-
-__version_info__-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class Agent - - | -
|
-
Client interface for using private keys from an SSH agent running on
-the local machine. If an SSH agent is running, this class can be used to
-connect to it and retreive PKey
objects which can be used when
-attempting to authenticate to remote SSH servers.
Method Summary | |
---|---|
- |
--Open a session with the local machine's SSH agent, if one is -running. |
- |
--Close the SSH agent connection. |
tuple of AgentKey
- |
-
--Return the list of keys available through the SSH agent, if any. |
- | _read_all(self,
- wanted)
- |
- | _send_message(self,
- msg)
- |
Method Details |
---|
- __init__(self)
-
- Open a session with the local machine's SSH agent, if one is
- running. If no agent is running, initialization will succeed, but |
- close(self) -- Close the SSH agent connection. -
|
- get_keys(self) -- Return the list of keys available through the SSH agent, if any. If - no SSH agent was running (or it couldn't be contacted), an empty list - will be returned. -
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:48 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class AgentKey - - | -
|
-
-object
--+ - | -PKey
--+ - | - AgentKey -
Method Summary | |
---|---|
- | __init__(self,
- agent,
- blob)
- |
str - | -
--Return a string of an SSH Message made up of the public part(s) of
-this key. |
str - | -
--Return the name of this private key implementation. |
Message
- |
-
--Sign a blob of data with this private key, and return a Message
-representing an SSH signature message. |
Inherited from PKey | |
int - | -
--Compare this key to another. |
str - | -
--Read an SSH2-format private key file, looking for a string of the type - "BEGIN xxx PRIVATE KEY" for some xxx ,
-base64-decode the text we find, and return it as a string. |
- |
--Write an SSH2-format private key file in a form that can be read by -paramiko or openssh. |
bool - | -
--Return True if this key has the private part necessary
-for signing data. |
PKey
- |
-
--Create a key object by reading a private key file. (Class method) - |
str - | -
--Return a base64 string containing the public part of this key. |
int - | -
--Return the number of significant bits in this key. |
str - | -
--Return an MD5 fingerprint of the public part of this key. |
boolean - | -
--Given a blob of data, and an SSH message representing a signature of -that data, verify that it was signed with this key. |
- |
--Write private key contents into a file. |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
Class Variable Summary | |
---|---|
Inherited from PKey | |
dict |
-_CIPHER_TABLE = {'DES-EDE3-CBC': {'blocksize': 8, 'ciphe...
- |
Instance Method Details |
---|
- __str__(self)
-
- Return a string of an SSH |
- get_name(self) -- Return the name of this private key implementation. -
|
- sign_ssh_data(self, - randpool, - data) -- Sign a blob of data with this private key, and return aMessage representing an SSH signature
- message.
-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class AuthHandler - - | -
|
-
-object
--+
- |
- AuthHandler
-
Method Summary | |
---|---|
- | __init__(self,
- transport)
- |
- | _disconnect_no_more_auth(self)
- |
- | _disconnect_service_not_available(self)
- |
- | _get_session_blob(self,
- key,
- service,
- username)
- |
- | _interactive_query(self,
- q)
- |
- | _parse_service_accept(self,
- m)
- |
- | _parse_service_request(self,
- m)
- |
- | _parse_userauth_banner(self,
- m)
- |
- | _parse_userauth_failure(self,
- m)
- |
- | _parse_userauth_info_request(self,
- m)
- |
- | _parse_userauth_info_response(self,
- m)
- |
- | _parse_userauth_request(self,
- m)
- |
- | _parse_userauth_success(self,
- m)
- |
- | _request_auth(self)
- |
- | _send_auth_result(self,
- username,
- method,
- result)
- |
- | abort(self)
- |
- |
--response_list = handler(title, instructions, prompt_list) |
- | auth_none(self,
- username,
- event)
- |
- | auth_password(self,
- username,
- password,
- event)
- |
- | auth_publickey(self,
- username,
- key,
- event)
- |
- | get_username(self)
- |
- | is_authenticated(self)
- |
- | wait_for_response(self,
- event)
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
dict |
-_handler_table = {5: <function _parse_service_request at...
- |
Method Details |
---|
- auth_interactive(self, - username, - handler, - event, - submethods='') -- response_list = handler(title, instructions, prompt_list) -
|
Class Variable Details |
---|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:48 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class BadAuthenticationType - - | -
|
-
-Exception
--+ - | -SSHException
--+ - | - BadAuthenticationType -
Since: 1.1 -
- - - -Method Summary | |
---|---|
- | __init__(self,
- explanation,
- types)
- |
- | __str__(self)
- |
Inherited from Exception | |
- |
- |
Instance Variable Summary | |
---|---|
list | -allowed_types : list of allowed authentication types provided by the server (possible
-values are: "none" ,
-"password" , and
-"publickey" ). |
Instance Variable Details |
---|
-
-allowed_types-list of allowed authentication types provided by the server (possible -values are:"none" ,
-"password" , and
-"publickey" ).
-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:48 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class BaseSFTP - - | -
|
-
-object
--+
- |
- BaseSFTP
-
SFTPClient
,
- SFTPServer
Method Summary | |
---|---|
- | __init__(self)
- |
- | _log(self,
- level,
- msg)
- |
- | _read_all(self,
- n)
- |
- | _read_packet(self)
- |
- | _send_packet(self,
- t,
- packet)
- |
- | _send_server_version(self)
- |
- | _send_version(self)
- |
- | _write_all(self,
- out)
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:46 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class BufferedFile - - | -
|
-
-object
--+
- |
- BufferedFile
-
SFTPFile
,
- ChannelFile
Method Summary | |
---|---|
- | __init__(self)
- |
- | __del__(self)
- |
iterator - | -
--Returns an iterator that can be used to iterate over the lines in this -file. |
- |
--Close the file. |
- |
--Write out any data in the write buffer. |
str - | -
--Returns the next line from the input, or raises - StopIteration when EOF is hit. |
str - | -
--Read at most size bytes from the file (less if we hit the
-end of the file first). |
str - | -
--Read one entire line from the file. |
list - | -
--Read all remaining lines using readline and return them as a list. |
- |
--Set the file's current position, like stdio's fseek . |
int - | -
--Return the file's current position. |
- |
--Write data to the file. |
- |
--Write a sequence of strings to the file. |
iterator - | -
--Identical to iter(f) . |
- |
--(subclass override) Return the size of the file. |
- |
--(subclass override) Read data from the stream. |
- | _record_newline(self,
- newline)
- |
- |
--Subclasses call this method to initialize the BufferedFile. |
- |
--(subclass override) Write data into the stream. |
- | _write_all(self,
- data)
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
int |
-SEEK_CUR = 1 |
int |
-SEEK_END = 2 |
int |
-SEEK_SET = 0 |
int |
-_DEFAULT_BUFSIZE = 8192 |
Method Details |
---|
- __iter__(self) -- Returns an iterator that can be used to iterate over the lines in - this file. This iterator happens to return the file itself, since a - file is its own iterator. -
|
- close(self) -- Close the file. Future read and write operations will fail. -
|
- flush(self) -- Write out any data in the write buffer. This may do nothing if write - buffering is not turned on. -
|
- next(self) -- Returns the next line from the input, or raises -StopIteration when EOF is hit. Unlike python file objects,
- it's okay to mix calls to next and readline .
-
|
- read(self, - size=None) -- Read at mostsize bytes from the file (less if we hit
- the end of the file first). If the size argument is
- negative or omitted, read all the remaining data in the file.
-
|
- readline(self, - size=None) -- Read one entire line from the file. A trailing newline character is - kept in the string (but may be absent when a file ends with an - incomplete line). If the size argument is present and non-negative, it - is a maximum byte count (including the trailing newline) and an - incomplete line may be returned. An empty string is returned only when - EOF is encountered immediately. -
|
- readlines(self, - sizehint=None) -- Read all remaining lines usingreadline and return them as a list. If
- the optional sizehint argument is present, instead of
- reading up to EOF, whole lines totalling approximately sizehint bytes
- (possibly after rounding up to an internal buffer size) are read.
-
|
- seek(self, - offset, - whence=0) -- Set the file's current position, like stdio'sfseek .
- Not all file objects support seeking.
-
|
- tell(self) -- Return the file's current position. This may not be accurate or - useful if the underlying file doesn't support random access, or was - opened in append mode. -
|
- write(self, - data) -- Write data to the file. If write buffering is on - (bufsize was specified and non-zero), some or all of the
- data may not actually be written yet. (Use flush or close to force buffered data to be
- written out.)
-
|
- writelines(self, - sequence) -- Write a sequence of strings to the file. The sequence can be any - iterable object producing strings, typically a list of strings. (The - name is intended to matchreadlines ; writelines does
- not add line separators.)
-
|
- xreadlines(self) -- Identical toiter(f) . This is a deprecated file
- interface that predates python iterator support.
-
|
- _get_size(self) -- (subclass override) Return the size of the file. This is - called from within_set_mode if the file is opened in append
- mode, so the file position can be tracked and seek and tell will work correctly. If the file is
- a stream that can't be randomly accessed, you don't need to override
- this method,
-
|
- _read(self, - size) -- (subclass override) Read data from the stream. Return -None or raise EOFError to indicate EOF.
-
|
- _set_mode(self, - mode='r', - bufsize=-1) -- Subclasses call this method to initialize the BufferedFile. -
|
- _write(self, - data) -- (subclass override) Write data into the stream. -
|
Class Variable Details |
---|
-
-SEEK_CUR-
|
-
-SEEK_END-
|
-
-SEEK_SET-
|
-
-_DEFAULT_BUFSIZE-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class Channel - - | -
|
-
-object
--+
- |
- Channel
-
A secure tunnel across an SSH Transport
. A Channel is meant to behave
-like a socket, and has an API that should be indistinguishable from the
-python socket API.
send
may block, unless you set a timeout.
-This is exactly like a normal network socket, so it shouldn't be too
-surprising.
-Method Summary | |
---|---|
- |
--Create a new channel. |
- | __del__(self)
- |
str - | -
--Return a string representation of this object, for debugging. |
- |
--Close the channel. |
bool - | -
--Execute a command on the server. |
int - | -
--Returns an OS-level file descriptor which can be used for polling, but -but not for reading or writing). |
int - | -
--Return the ID # for this channel. |
str - | -
--Get the name of this channel that was previously set by set_name . |
bool - | -
--Request a pseudo-terminal from the server. |
Transport
- |
-
--Return the Transport associated with this channel. |
float - | -
--Returns the timeout in seconds (as a float) associated with socket -operations, or None if no timeout is set. |
bool - | -
--Request an interactive shell session on this channel. |
bool - | -
--Request a subsystem on the server (for example, - sftp ). |
ChannelFile
- |
-
--Return a file-like object associated with this channel. |
ChannelFile
- |
-
--Return a file-like object associated with this channel's stderr -stream. |
str - | -
--Receive data from the channel. |
int - | -
--Return the exit status from the process on the server. |
boolean - | -
--Returns true if data is buffered and ready to be read from this -channel. |
str - | -
--Receive data from the channel's stderr stream. |
boolean - | -
--Returns true if data is buffered and ready to be read from this -channel's stderr stream. |
bool - | -
--Resize the pseudo-terminal. |
int - | -
--Send data to the channel. |
- |
--Send the exit status of an executed command to the client. |
int - | -
--Send data to the channel on the "stderr" stream. |
- |
--Send data to the channel, without allowing partial results. |
- |
--Send data to the channel's "stderr" stream, without allowing -partial results. |
bool - | -
--Set whether stderr should be combined into stdout on this channel. |
- |
--Set a name for this channel. |
- |
--Set blocking or non-blocking mode of the channel: if - blocking is 0, the channel is set to non-blocking mode;
-otherwise it's set to blocking mode. |
- |
--Set a timeout on blocking read/write operations. |
- |
--Shut down one or both halves of the connection. |
- |
--Shutdown the receiving side of this socket, closing the stream in the -incoming direction. |
- |
--Shutdown the sending side of this socket, closing the stream in the -outgoing direction. |
- | _check_add_window(self,
- n)
- |
- | _close_internal(self)
- |
- | _feed(self,
- m)
- |
- | _feed_extended(self,
- m)
- |
- | _handle_close(self,
- m)
- |
- | _handle_eof(self,
- m)
- |
- | _handle_request(self,
- m)
- |
- | _log(self,
- level,
- msg)
- |
- | _request_failed(self,
- m)
- |
- | _request_success(self,
- m)
- |
- | _send_eof(self)
- |
- | _set_closed(self)
- |
- | _set_remote_channel(self,
- chanid,
- window_size,
- max_packet_size)
- |
- | _set_transport(self,
- transport)
- |
- | _set_window(self,
- window_size,
- max_packet_size)
- |
- | _unlink(self)
- |
- |
--(You are already holding the lock.) Wait for the send window to open -up, and allocate up to size bytes for transmission. |
- | _window_adjust(self,
- m)
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
int |
-MIN_PACKET_SIZE = 1024 |
Method Details |
---|
- __init__(self,
- chanid)
-
- Create a new channel. The channel is not associated with any
- particular session or |
- __repr__(self)
-
- Return a string representation of this object, for debugging.
- |
- close(self) -- Close the channel. All future read/write operations on the channel - will fail. The remote end will receive no more data (after queued data - is flushed). Channels are automatically closed when theirTransport is closed or when they are
- garbage collected.
-
|
- exec_command(self, - command) --Execute a command on the server. If the server allows it, the - channel will then be directly connected to the stdin, stdout, and - stderr of the command being executed. - When the command finishes executing, the channel will be closed and - can't be reused. You must open a new channel if you wish to execute - another command. -
|
- fileno(self) --Returns an OS-level file descriptor which can be used for polling,
- but but not for reading or writing). This is primaily to allow
- python's fileno is called on a channel, a pipe is
- created to simulate real OS-level file descriptor (FD) behavior.
- Because of this, two OS-level FDs are created, which will use up FDs
- faster than normal. You won't notice this effect unless you open
- hundreds or thousands of channels simultaneously, but it's still
- notable.
-
|
- get_id(self) -- Return the ID # for this channel. The channel ID is unique across a -Transport and usually a small number.
- It's also the number passed to ServerInterface.check_channel_request
- when determining whether to accept a channel request in server
- mode.
-
|
- get_name(self) -- Get the name of this channel that was previously set byset_name .
-
|
- get_pty(self, - term='vt100', - width=80, - height=24) -- Request a pseudo-terminal from the server. This is usually used - right after creating a client channel, to ask the server to provide - some basic terminal semantics for a shell invoked withinvoke_shell . It isn't necessary (or
- desirable) to call this method if you're going to exectue a single
- command with exec_command .
-
|
- get_transport(self) -- Return theTransport associated with this
- channel.
-
- |
- gettimeout(self) -- Returns the timeout in seconds (as a float) associated with socket - operations, orNone if no timeout is set. This reflects
- the last call to setblocking or settimeout .
-
|
- invoke_shell(self) --Request an interactive shell session on this channel. If the server - allows it, the channel will then be directly connected to the stdin, - stdout, and stderr of the shell. -Normally you would call
|
- invoke_subsystem(self, - subsystem) --Request a subsystem on the server (for example,
|
- makefile(self, - *params) -- Return a file-like object associated with this channel. The optional -mode and bufsize arguments are interpreted
- the same way as by the built-in file() function in
- python.
-
|
- makefile_stderr(self, - *params) --Return a file-like object associated with this channel's stderr
- stream. Only channels using mode and bufsize arguments
- are interpreted the same way as by the built-in file()
- function in python. For a client, it only makes sense to open this file
- for reading. For a server, it only makes sense to open this file for
- writing.
-
|
- recv(self, - nbytes) -- Receive data from the channel. The return value is a string - representing the data received. The maximum amount of data to be - received at once is specified bynbytes . If a string of
- length zero is returned, the channel stream has closed.
-
|
- recv_exit_status(self) -- Return the exit status from the process on the server. This is - mostly useful for retrieving the reults of anexec_command . If the command hasn't
- finished yet, this method will wait until it does, or until the channel
- is closed. If no exit status is provided by the server, -1 is
- returned.
-
|
- recv_ready(self) -- Returns true if data is buffered and ready to be read from this - channel. AFalse result does not mean that the channel has
- closed; it means you may need to wait before more data arrives.
-
|
- recv_stderr(self, - nbytes) -- Receive data from the channel's stderr stream. Only channels using -exec_command or invoke_shell without a pty will ever have
- data on the stderr stream. The return value is a string representing
- the data received. The maximum amount of data to be received at once is
- specified by nbytes . If a string of length zero is
- returned, the channel stream has closed.
-
|
- recv_stderr_ready(self) -- Returns true if data is buffered and ready to be read from this - channel's stderr stream. Only channels usingexec_command or invoke_shell without a pty will ever have
- data on the stderr stream.
-
|
- resize_pty(self, - width=80, - height=24) -- Resize the pseudo-terminal. This can be used to change the width and - height of the terminal emulation created in a previousget_pty call.
-
|
- send(self, - s) -- Send data to the channel. Returns the number of bytes sent, or 0 if - the channel stream is closed. Applications are responsible for checking - that all data has been sent: if only some of the data was transmitted, - the application needs to attempt delivery of the remaining data. -
|
- send_exit_status(self, - status) -- Send the exit status of an executed command to the client. (This - really only makes sense in server mode.) Many clients expect to get - some sort of status code back from an executed command after it - completes. -
|
- send_stderr(self, - s) -- Send data to the channel on the "stderr" stream. This is - normally only used by servers to send output from shell commands -- - clients won't use this. Returns the number of bytes sent, or 0 if the - channel stream is closed. Applications are responsible for checking - that all data has been sent: if only some of the data was transmitted, - the application needs to attempt delivery of the remaining data. -
|
- sendall(self, - s) -- Send data to the channel, without allowing partial results. Unlike -send , this method continues to send data
- from the given string until either all data has been sent or an error
- occurs. Nothing is returned.
-
|
- sendall_stderr(self, - s) -- Send data to the channel's "stderr" stream, without - allowing partial results. Unlikesend_stderr , this method continues to
- send data from the given string until all data has been sent or an
- error occurs. Nothing is returned.
-
|
- set_combine_stderr(self, - combine) --Set whether stderr should be combined into stdout on this channel.
- The default is If this is True , data will never show up via recv_stderr or recv_stderr_ready .
-
|
- set_name(self, - name) -- Set a name for this channel. Currently it's only used to set the - name of the log level used for debugging. The name can be fetched with - theget_name method.
-
|
- setblocking(self, - blocking) --Set blocking or non-blocking mode of the channel: if
- In non-blocking mode, if a chan.setblocking(0) is equivalent to
- chan.settimeout(0) ; chan.setblocking(1) is
- equivalent to chan.settimeout(None) .
-
|
- settimeout(self, - timeout) --Set a timeout on blocking read/write operations. The
- chan.settimeout(0.0) is equivalent to
- chan.setblocking(0) ; chan.settimeout(None) is
- equivalent to chan.setblocking(1) .
-
|
- shutdown(self, - how) -- Shut down one or both halves of the connection. Ifhow
- is 0, further receives are disallowed. If how is 1,
- further sends are disallowed. If how is 2, further sends
- and receives are disallowed. This closes the stream in one or both
- directions.
-
|
- shutdown_read(self) -- Shutdown the receiving side of this socket, closing the stream in - the incoming direction. After this call, future reads on this channel - will fail instantly. This is a convenience method, equivalent to -shutdown(0) , for people who don't make it a habit to
- memorize unix constants from the 1970s.
-
|
- shutdown_write(self) -- Shutdown the sending side of this socket, closing the stream in the - outgoing direction. After this call, future writes on this channel will - fail instantly. This is a convenience method, equivalent to -shutdown(1) , for people who don't make it a habit to
- memorize unix constants from the 1970s.
-
|
- _wait_for_send_window(self, - size) -- (You are already holding the lock.) Wait for the send window to open - up, and allocate up tosize bytes for transmission. If no
- space opens up before the timeout, a timeout exception is raised.
- Returns the number of bytes available to send (may be less than
- requested).
-
|
Class Variable Details |
---|
-
-MIN_PACKET_SIZE-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class ChannelFile - - | -
|
-
-object
--+ - | -BufferedFile
--+ - | - ChannelFile -
ChannelStderrFile
Channel
. A ChannelFile is created by
-calling Channel.makefile
.
-Bug: To correctly emulate the file object created from a socket's
-makefile
method, a Channel
and its ChannelFile
-should be able to be closed or garbage-collected independently.
-Currently, closing the ChannelFile
does nothing but flush
-the buffer.
-
Method Summary | |
---|---|
- | __init__(self,
- channel,
- mode,
- bufsize)
- |
str - | -
--Returns a string representation of this object, for debugging. |
- |
--(subclass override) Read data from the stream. |
- |
--(subclass override) Write data into the stream. |
- |
--Set the file's current position, like stdio's fseek . |
Inherited from BufferedFile | |
- |
- |
iterator - | -
--Returns an iterator that can be used to iterate over the lines in this -file. |
- |
--Close the file. |
- |
--Write out any data in the write buffer. |
str - | -
--Returns the next line from the input, or raises - StopIteration when EOF is hit. |
str - | -
--Read at most size bytes from the file (less if we hit the
-end of the file first). |
str - | -
--Read one entire line from the file. |
list - | -
--Read all remaining lines using readline and return them as a list. |
int - | -
--Return the file's current position. |
- |
--Write data to the file. |
- |
--Write a sequence of strings to the file. |
iterator - | -
--Identical to iter(f) . |
- |
--(subclass override) Return the size of the file. |
- |
- |
- |
--Subclasses call this method to initialize the BufferedFile. |
- |
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
Inherited from BufferedFile | |
int |
-SEEK_CUR = 1 |
int |
-SEEK_END = 2 |
int |
-SEEK_SET = 0 |
int |
-_DEFAULT_BUFSIZE = 8192 |
Method Details |
---|
- __repr__(self)
-
- Returns a string representation of this object, for debugging.
- |
- _read(self, - size) -- (subclass override) Read data from the stream. Return -None or raise EOFError to indicate EOF.
-
|
- _write(self, - data) -- (subclass override) Write data into the stream. -
|
- seek(self, - offset, - whence=0) -- Set the file's current position, like stdio'sfseek .
- Not all file objects support seeking.
-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class DSSKey - - | -
|
-
-object
--+ - | -PKey
--+ - | - DSSKey -
Method Summary | |
---|---|
- |
--Create a new instance of this public key type. |
- | __hash__(self)
- |
str - | -
--Return a string of an SSH Message made up of the public part(s) of
-this key. |
bool - | -
--Return True if this key has the private part necessary
-for signing data. |
DSSKey
- |
-
--Generate a new private DSS key. (Static method) - |
int - | -
--Return the number of significant bits in this key. |
str - | -
--Return the name of this private key implementation. |
- | sign_ssh_data(self,
- rpool,
- data)
- |
boolean - | -
--Given a blob of data, and an SSH message representing a signature of -that data, verify that it was signed with this key. |
- |
--Write private key contents into a file. |
- | _from_private_key_file(self,
- filename,
- password)
- |
Inherited from PKey | |
int - | -
--Compare this key to another. |
str - | -
--Read an SSH2-format private key file, looking for a string of the type - "BEGIN xxx PRIVATE KEY" for some xxx ,
-base64-decode the text we find, and return it as a string. |
- |
--Write an SSH2-format private key file in a form that can be read by -paramiko or openssh. |
PKey
- |
-
--Create a key object by reading a private key file. (Class method) - |
str - | -
--Return a base64 string containing the public part of this key. |
str - | -
--Return an MD5 fingerprint of the public part of this key. |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
Class Variable Summary | |
---|---|
Inherited from PKey | |
dict |
-_CIPHER_TABLE = {'DES-EDE3-CBC': {'blocksize': 8, 'ciphe...
- |
Instance Method Details |
---|
- __init__(self,
- msg=None,
- data=None,
- filename=None,
- password=None,
- vals=None)
-
- Create a new instance of this public key type. If |
- __str__(self)
-
- Return a string of an SSH |
- can_sign(self) -- ReturnTrue if this key has the private part necessary
- for signing data.
-
|
- get_bits(self) -- Return the number of significant bits in this key. This is useful - for judging the relative security of a key. -
|
- get_name(self) -- Return the name of this private key implementation. -
|
- verify_ssh_sig(self, - data, - msg) -- Given a blob of data, and an SSH message representing a signature of - that data, verify that it was signed with this key. -
|
- write_private_key_file(self, - filename, - password=None) -- Write private key contents into a file. If the password is not -None , the key is encrypted before writing.
-
|
Static Method Details |
---|
- generate(bits=1024, - progress_func=None) -- Generate a new private DSS key. This factory function can be used to - generate a new host key or authentication key. -
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:48 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class Message - - | -
|
-
-object
--+
- |
- Message
-
An SSH2 Message is a stream of bytes that encodes some -combination of strings, integers, bools, and infinite-precision integers -(known in python as longs). This class builds or breaks down such -a byte stream.
-Normally you don't need to deal with anything this low-level, but it's -exposed for people implementing custom extensions, or features that -paramiko doesn't support yet. -Method Summary | |
---|---|
- |
--Create a new SSH2 Message. |
string - | -
--Returns a string representation of this object, for debugging. |
string - | -
--Return the byte stream content of this Message, as a string. |
- |
--Add a sequence of items to the stream. |
- |
--Add a boolean value to the stream. |
- |
--Write a single byte to the stream, without any formatting. |
- |
--Write bytes to the stream, without any formatting. |
- |
--Add an integer to the stream. |
- |
--Add a 64-bit int to the stream. |
- |
--Add a list of strings to the stream. |
- |
--Add a long int to the stream, encoded as an infinite-precision -integer. |
- |
--Add a string to the stream. |
bool - | -
--Fetch a boolean from the stream. |
string - | -
--Return the next byte of the Message, without decomposing it. |
string - | -
--Return the next n bytes of the Message, without
-decomposing into an int, string, etc. |
int - | -
--Fetch an int from the stream. |
long - | -
--Fetch a 64-bit int from the stream. |
list of strings - | -
--Fetch a list of strings from the stream. |
long - | -
--Fetch a long int (mpint) from the stream. |
string - | -
--Return the bytes of this Message that haven't already been parsed and -returned. |
string - | -
--Returns the bytes of this Message that have been parsed and -returned. |
string - | -
--Fetch a string from the stream. |
- |
--Rewind the message to the beginning as if no items had been parsed out -of it yet. |
- | _add(self,
- i)
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__setattr__('name', value) <==> x.name = value |
Method Details |
---|
- __init__(self,
- content=None)
-
- Create a new SSH2 Message.
- |
- __repr__(self)
-
- Returns a string representation of this object, for debugging.
- |
- __str__(self)
-
- Return the byte stream content of this Message, as a string.
- |
- add(self, - *seq) -- Add a sequence of items to the stream. The values are encoded based - on their type: str, int, bool, list, or long. -
|
- add_boolean(self, - b) -- Add a boolean value to the stream. -
|
- add_byte(self, - b) -- Write a single byte to the stream, without any formatting. -
|
- add_bytes(self, - b) -- Write bytes to the stream, without any formatting. -
|
- add_int(self, - n) -- Add an integer to the stream. -
|
- add_int64(self, - n) -- Add a 64-bit int to the stream. -
|
- add_list(self, - l) -- Add a list of strings to the stream. They are encoded identically to - a single string of values separated by commas. (Yes, really, that's how - SSH2 does it.) -
|
- add_mpint(self, - z) -- Add a long int to the stream, encoded as an infinite-precision - integer. This method only works on positive numbers. -
|
- add_string(self, - s) -- Add a string to the stream. -
|
- get_boolean(self) -- Fetch a boolean from the stream. -
|
- get_byte(self) -- Return the next byte of the Message, without decomposing it. This is - equivalent toget_bytes(1) .
-
|
- get_bytes(self, - n) -- Return the nextn bytes of the Message, without
- decomposing into an int, string, etc. Just the raw bytes are
- returned.
-
|
- get_int(self) -- Fetch an int from the stream. -
|
- get_int64(self) -- Fetch a 64-bit int from the stream. -
|
- get_list(self) -- Fetch a list of strings from the stream. These are trivially encoded - as comma-separated values in a string. -
|
- get_mpint(self) -- Fetch a long int (mpint) from the stream. -
|
- get_remainder(self) -- Return the bytes of this Message that haven't already been parsed - and returned. -
|
- get_so_far(self) -- Returns the bytes of this Message that have been parsed and - returned. The string passed into a Message's constructor can be - regenerated by concatenatingget_so_far and get_remainder .
-
|
- get_string(self) -- Fetch a string from the stream. This could be a byte string and may - contain unprintable characters. (It's not unheard of for a string to - contain another byte-stream Message.) -
|
- rewind(self) -- Rewind the message to the beginning as if no items had been parsed - out of it yet. -
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:46 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class PKey - - | -
|
-
-object
--+
- |
- PKey
-
AgentKey
,
- DSSKey
,
- RSAKey
Method Summary | |
---|---|
- |
--Create a new instance of this public key type. |
int - | -
--Compare this key to another. |
str - | -
--Return a string of an SSH Message made up of the public part(s) of
-this key. |
str - | -
--Read an SSH2-format private key file, looking for a string of the type - "BEGIN xxx PRIVATE KEY" for some xxx ,
-base64-decode the text we find, and return it as a string. |
- |
--Write an SSH2-format private key file in a form that can be read by -paramiko or openssh. |
bool - | -
--Return True if this key has the private part necessary
-for signing data. |
PKey
- |
-
--Create a key object by reading a private key file. (Class method) - |
str - | -
--Return a base64 string containing the public part of this key. |
int - | -
--Return the number of significant bits in this key. |
str - | -
--Return an MD5 fingerprint of the public part of this key. |
str - | -
--Return the name of this private key implementation. |
Message
- |
-
--Sign a blob of data with this private key, and return a Message
-representing an SSH signature message. |
boolean - | -
--Given a blob of data, and an SSH message representing a signature of -that data, verify that it was signed with this key. |
- |
--Write private key contents into a file. |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
Class Variable Summary | |
---|---|
dict |
-_CIPHER_TABLE = {'DES-EDE3-CBC': {'blocksize': 8, 'ciphe...
- |
Instance Method Details |
---|
- __init__(self,
- msg=None,
- data=None)
-
- Create a new instance of this public key type. If |
- __cmp__(self,
- other)
-
- Compare this key to another. Returns 0 if this key is equivalent to
- the given key, or non-0 if they are different. Only the public parts of
- the key are compared, so a public key will compare equal to its
- corresponding private key.
- |
- __str__(self)
-
- Return a string of an SSH |
- _read_private_key_file(self, - tag, - filename, - password=None) -- Read an SSH2-format private key file, looking for a string of the - type"BEGIN xxx PRIVATE KEY" for some
- xxx , base64-decode the text we find, and return it as a
- string. If the private key is encrypted and password is
- not None , the given password will be used to decrypt the
- key (otherwise PasswordRequiredException is thrown).
-
|
- _write_private_key_file(self, - tag, - filename, - data, - password=None) -- Write an SSH2-format private key file in a form that can be read by - paramiko or openssh. If no password is given, the key is written in a - trivially-encoded format (base64) which is completely insecure. If a - password is given, DES-EDE3-CBC is used. -
|
- can_sign(self) -- ReturnTrue if this key has the private part necessary
- for signing data.
-
|
- get_base64(self) -- Return a base64 string containing the public part of this key. - Nothing secret is revealed. This format is compatible with that used to - store public key files or recognized host keys. -
|
- get_bits(self) -- Return the number of significant bits in this key. This is useful - for judging the relative security of a key. -
|
- get_fingerprint(self) -- Return an MD5 fingerprint of the public part of this key. Nothing - secret is revealed. -
|
- get_name(self) -- Return the name of this private key implementation. -
|
- sign_ssh_data(self, - randpool, - data) -- Sign a blob of data with this private key, and return aMessage representing an SSH signature
- message.
-
|
- verify_ssh_sig(self, - data, - msg) -- Given a blob of data, and an SSH message representing a signature of - that data, verify that it was signed with this key. -
|
- write_private_key_file(self, - filename, - password=None) -- Write private key contents into a file. If the password is not -None , the key is encrypted before writing.
-
|
Class Method Details |
---|
- from_private_key_file(cl, - filename, - password=None) -- Create a key object by reading a private key file. If the private - key is encrypted andpassword is not None ,
- the given password will be used to decrypt the key (otherwise PasswordRequiredException is thrown).
- Through the magic of python, this factory method will exist in all
- subclasses of PKey (such as RSAKey or DSSKey ), but is useless on the abstract
- PKey class.
-
|
Class Variable Details |
---|
-
-_CIPHER_TABLE-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class Packetizer - - | -
|
-
-object
--+
- |
- Packetizer
-
Method Summary | |
---|---|
- | __init__(self,
- socket)
- |
- | __del__(self)
- |
- | _build_packet(self,
- payload)
- |
- | _check_keepalive(self)
- |
- | _log(self,
- level,
- msg)
- |
- | _py22_read_all(self,
- n)
- |
- | _py22_read_timeout(self,
- timeout)
- |
- | _read_timeout(self,
- timeout)
- |
- | _trigger_rekey(self)
- |
- | close(self)
- |
- | get_hexdump(self)
- |
- | get_mac_size_in(self)
- |
- | get_mac_size_out(self)
- |
- |
--Returns True if a new set of keys needs to be
-negotiated. |
str - | -
--Read as close to N bytes as possible, blocking as long as -necessary. |
- |
--Only one thread should ever be in this function (no other locking is -done). |
- |
--Read a line from the socket. |
- |
--Write a block of data using the current cipher, as an SSH block. |
- | set_hexdump(self,
- hexdump)
- |
- |
--Switch inbound data cipher. |
- | set_inbound_compressor(self,
- compressor)
- |
- |
--Turn on/off the callback keepalive. |
- |
--Set the python log object to use for logging. |
- |
--Switch outbound data cipher. |
- | set_outbound_compressor(self,
- compressor)
- |
- | write_all(self,
- out)
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
int |
-REKEY_BYTES = 1073741824 |
int |
-REKEY_PACKETS = 1073741824 |
Method Details |
---|
- need_rekey(self) -- ReturnsTrue if a new set of keys needs to be
- negotiated. This will be triggered during a packet read or write, so it
- should be checked after every read or write, or at least after every
- few.
-
|
- read_all(self, - n, - check_rekey=False) -- Read as close to N bytes as possible, blocking as long as - necessary. -
|
- read_message(self) -- Only one thread should ever be in this function (no other locking is - done). -
|
- readline(self, - timeout) -- Read a line from the socket. This is done in a fairly inefficient - way, but is only used for initial banner negotiation so it's not worth - optimising. -
|
- send_message(self, - data) -- Write a block of data using the current cipher, as an SSH block. -
|
- set_inbound_cipher(self, - block_engine, - block_size, - mac_engine, - mac_size, - mac_key) -- Switch inbound data cipher. -
|
- set_keepalive(self, - interval, - callback) -- Turn on/off the callback keepalive. Ifinterval seconds
- pass with no data read from or written to the socket, the callback will
- be executed and the timer will be reset.
-
|
- set_log(self, - log) -- Set the python log object to use for logging. -
|
- set_outbound_cipher(self, - block_engine, - block_size, - mac_engine, - mac_size, - mac_key) -- Switch outbound data cipher. -
|
Class Variable Details |
---|
-
-REKEY_BYTES-
|
-
-REKEY_PACKETS-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:46 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class PasswordRequiredException - - | -
|
-
-Exception
--+ - | -SSHException
--+ - | - PasswordRequiredException -
Method Summary | |
---|---|
Inherited from Exception | |
- |
- |
- |
- |
- |
- |
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:48 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class RSAKey - - | -
|
-
-object
--+ - | -PKey
--+ - | - RSAKey -
Method Summary | |
---|---|
- |
--Create a new instance of this public key type. |
- | __hash__(self)
- |
str - | -
--Return a string of an SSH Message made up of the public part(s) of
-this key. |
bool - | -
--Return True if this key has the private part necessary
-for signing data. |
RSAKey
- |
-
--Generate a new private RSA key. (Static method) - |
int - | -
--Return the number of significant bits in this key. |
str - | -
--Return the name of this private key implementation. |
- | sign_ssh_data(self,
- rpool,
- data)
- |
boolean - | -
--Given a blob of data, and an SSH message representing a signature of -that data, verify that it was signed with this key. |
- |
--Write private key contents into a file. |
- | _from_private_key_file(self,
- filename,
- password)
- |
- |
--turn a 20-byte SHA1 hash into a blob of data as large as the key's N, -using PKCS1's "emsa-pkcs1-v1_5" encoding. |
Inherited from PKey | |
int - | -
--Compare this key to another. |
str - | -
--Read an SSH2-format private key file, looking for a string of the type - "BEGIN xxx PRIVATE KEY" for some xxx ,
-base64-decode the text we find, and return it as a string. |
- |
--Write an SSH2-format private key file in a form that can be read by -paramiko or openssh. |
PKey
- |
-
--Create a key object by reading a private key file. (Class method) - |
str - | -
--Return a base64 string containing the public part of this key. |
str - | -
--Return an MD5 fingerprint of the public part of this key. |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
Class Variable Summary | |
---|---|
Inherited from PKey | |
dict |
-_CIPHER_TABLE = {'DES-EDE3-CBC': {'blocksize': 8, 'ciphe...
- |
Instance Method Details |
---|
- __init__(self,
- msg=None,
- data=None,
- filename=None,
- password=None,
- vals=None)
-
- Create a new instance of this public key type. If |
- __str__(self)
-
- Return a string of an SSH |
- can_sign(self) -- ReturnTrue if this key has the private part necessary
- for signing data.
-
|
- get_bits(self) -- Return the number of significant bits in this key. This is useful - for judging the relative security of a key. -
|
- get_name(self) -- Return the name of this private key implementation. -
|
- verify_ssh_sig(self, - data, - msg) -- Given a blob of data, and an SSH message representing a signature of - that data, verify that it was signed with this key. -
|
- write_private_key_file(self, - filename, - password=None) -- Write private key contents into a file. If the password is not -None , the key is encrypted before writing.
-
|
- _pkcs1imify(self, - data) -- turn a 20-byte SHA1 hash into a blob of data as large as the key's - N, using PKCS1's "emsa-pkcs1-v1_5" encoding. totally - bizarre. -
|
Static Method Details |
---|
- generate(bits, - progress_func=None) -- Generate a new private RSA key. This factory function can be used to - generate a new host key or authentication key. -
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class SFTP - - | -
|
-
-object
--+ - | -BaseSFTP
--+ - | -SFTPClient
--+ - | - SFTP -
SFTPClient
for backwards compatability
-Method Summary | |
---|---|
Inherited from SFTPClient | |
- |
--Create an SFTP client from an existing Channel . |
- |
- |
- |
--Change the "current directory" of this SFTP session. |
- |
--Change the mode (permissions) of a file. |
- |
--Change the owner ( uid ) and group (gid ) of a
-file. |
- |
--Close the SFTP session and its underlying channel. |
SFTPFile - | -
--Open a file on the remote server. |
SFTPClient
- |
-
--Create an SFTP client channel from an open Transport . (Class method)
- |
- |
--Copy a remote file ( remotepath ) from the SFTP server to
-the local host as localpath . |
str - | -
--Return the "current working directory" for this SFTP -session, as emulated by paramiko. |
list of str - | -
--Return a list containing the names of the entries in the given - path . |
list of SFTPAttributes
- |
-
--Return a list containing SFTPAttributes objects corresponding to
-files in the given path . |
SFTPAttributes - | -
--Retrieve information about a file on the remote system, without -following symbolic links (shortcuts). |
- |
--Create a folder (directory) named path with numeric mode
-mode . |
str - | -
--Return the normalized path (on the server) of a given path. |
SFTPFile - | -
--Open a file on the remote server. |
- |
--Copy a local file ( localpath ) to the SFTP server as
-remotepath . |
str - | -
--Return the target of a symbolic link (shortcut). |
- |
--Remove the file at the given path. |
- |
--Rename a file or folder from oldpath to
-newpath . |
- |
--Remove the folder named path . |
SFTPAttributes - | -
--Retrieve information about a file on the remote system. |
- |
--Create a symbolic link (shortcut) of the source path at
-destination . |
- |
--Remove the file at the given path. |
- |
--Set the access and modified times of the file specified by - path . |
- |
--Return an adjusted path if we're emulating a "current working -directory" for the server. |
- |
- |
- |
--Raises EOFError or IOError on error status; otherwise does -nothing. |
- |
- |
- |
- |
- |
- |
Inherited from BaseSFTP | |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class SFTPAttributes - - | -
|
-
-object
--+
- |
- SFTPAttributes
-
os.stat
as closely as possible, so it may have the following
-fields, with the same meanings as those returned by an
-os.stat
object:
-attr
. Occasionally, the
-filename is also stored, in filename
.
-Method Summary | |
---|---|
- |
--Create a new (empty) SFTPAttributes object. |
- | __repr__(self)
- |
- |
--create a unix-style long description of the file (like ls -l) |
SFTPAttributes
- |
-
--Create an SFTPAttributes object from an existing stat
-object (an object returned by os.stat ). (Class method)
- |
- | _debug_str(self)
- |
- | _from_msg(cls,
- msg,
- filename)
-- (Class method) - |
- | _pack(self,
- msg)
- |
- | _rwx(n,
- suid,
- sticky)
-- (Static method) - |
- | _unpack(self,
- msg)
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__setattr__('name', value) <==> x.name = value |
Class Variable Summary | |
---|---|
int |
-FLAG_AMTIME = 8 |
long |
-FLAG_EXTENDED = 2147483648L
- |
int |
-FLAG_PERMISSIONS = 4 |
int |
-FLAG_SIZE = 1 |
int |
-FLAG_UIDGID = 2 |
Instance Method Details |
---|
- __init__(self)
-
- Create a new (empty) SFTPAttributes object. All fields will be
- empty.
- |
- __str__(self)
-
- create a unix-style long description of the file (like ls -l)
- |
Class Method Details |
---|
- from_stat(cls, - obj, - filename=None) -- Create an SFTPAttributes object from an existingstat
- object (an object returned by os.stat ).
-
|
Class Variable Details |
---|
-
-FLAG_AMTIME-
|
-
-FLAG_EXTENDED-
|
-
-FLAG_PERMISSIONS-
|
-
-FLAG_SIZE-
|
-
-FLAG_UIDGID-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class SFTPClient - - | -
|
-
-object
--+ - | -BaseSFTP
--+ - | - SFTPClient -
SFTP
SFTPClient
is used to open an sftp
-session across an open ssh Transport
and do remote file
-operations.
-Method Summary | |
---|---|
- |
--Create an SFTP client from an existing Channel . |
- | __del__(self)
- |
- |
--Change the "current directory" of this SFTP session. |
- |
--Change the mode (permissions) of a file. |
- |
--Change the owner ( uid ) and group (gid ) of a
-file. |
- |
--Close the SFTP session and its underlying channel. |
SFTPFile - | -
--Open a file on the remote server. |
SFTPClient
- |
-
--Create an SFTP client channel from an open Transport . (Class method)
- |
- |
--Copy a remote file ( remotepath ) from the SFTP server to
-the local host as localpath . |
str - | -
--Return the "current working directory" for this SFTP -session, as emulated by paramiko. |
list of str - | -
--Return a list containing the names of the entries in the given - path . |
list of SFTPAttributes
- |
-
--Return a list containing SFTPAttributes objects corresponding to
-files in the given path . |
SFTPAttributes - | -
--Retrieve information about a file on the remote system, without -following symbolic links (shortcuts). |
- |
--Create a folder (directory) named path with numeric mode
-mode . |
str - | -
--Return the normalized path (on the server) of a given path. |
SFTPFile - | -
--Open a file on the remote server. |
- |
--Copy a local file ( localpath ) to the SFTP server as
-remotepath . |
str - | -
--Return the target of a symbolic link (shortcut). |
- |
--Remove the file at the given path. |
- |
--Rename a file or folder from oldpath to
-newpath . |
- |
--Remove the folder named path . |
SFTPAttributes - | -
--Retrieve information about a file on the remote system. |
- |
--Create a symbolic link (shortcut) of the source path at
-destination . |
- |
--Remove the file at the given path. |
- |
--Set the access and modified times of the file specified by - path . |
- |
--Return an adjusted path if we're emulating a "current working -directory" for the server. |
- | _async_request(self,
- fileobj,
- t,
- *arg)
- |
- |
--Raises EOFError or IOError on error status; otherwise does -nothing. |
- | _finish_responses(self,
- fileobj)
- |
- | _read_response(self,
- waitfor)
- |
- | _request(self,
- t,
- *arg)
- |
Inherited from BaseSFTP | |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Instance Method Details |
---|
- __init__(self,
- sock)
-
- |
- chdir(self, - path) -- Change the "current directory" of this SFTP session. Since - SFTP doesn't really have the concept of a current working directory, - this is emulated by paramiko. Once you use this method to set a working - directory, all operations on this SFTPClient object will be relative to - that path. -
|
- chmod(self, - path, - mode) -- Change the mode (permissions) of a file. The permissions are - unix-style and identical to those used by python's -os.chmod function.
-
|
- chown(self, - path, - uid, - gid) -- Change the owner (uid ) and group (gid ) of
- a file. As with python's os.chown function, you must pass
- both arguments, so if you only want to change one, use stat first to retrieve the current owner
- and group.
-
|
- close(self) -- Close the SFTP session and its underlying channel. -
|
- file(self, - filename, - mode='r', - bufsize=-1) --Open a file on the remote server. The arguments are the same as for
- python's built-in The mode indicates how the file is to be opened: Since 1.5.2, an bufsize parameter. 0
- turns off buffering, 1 uses line buffering, and any number
- greater than 1 (>1 ) uses that specific buffer size.
-
|
- get(self, - remotepath, - localpath) -- Copy a remote file (remotepath ) from the SFTP server to
- the local host as localpath . Any exception raised by
- operations will be passed through. This method is primarily provided as
- a convenience.
-
|
- getcwd(self) -- Return the "current working directory" for this SFTP - session, as emulated by paramiko. If no directory has been set withchdir , this method will return
- None .
-
|
- listdir(self, - path='.') -- Return a list containing the names of the entries in the given -path . The list is in arbitrary order. It does not include
- the special entries '.' and '..' even if they
- are present in the folder. This method is meant to mirror
- os.listdir as closely as possible. For a list of full SFTPAttributes objects, see listdir_attr .
-
|
- listdir_attr(self, - path='.') -- Return a list containingSFTPAttributes objects corresponding to
- files in the given path . The list is in arbitrary order.
- It does not include the special entries '.' and
- '..' even if they are present in the folder.
-
|
- lstat(self, - path) -- Retrieve information about a file on the remote system, without - following symbolic links (shortcuts). This otherwise behaves exactly - the same asstat .
-
|
- mkdir(self, - path, - mode=511) -- Create a folder (directory) namedpath with numeric
- mode mode . The default mode is 0777 (octal). On some
- systems, mode is ignored. Where it is used, the current umask value is
- first masked out.
-
|
- normalize(self, - path) -- Return the normalized path (on the server) of a given path. This can - be used to quickly resolve symbolic links or determine what the server - is considering to be the "current folder" (by passing -'.' as path ).
-
|
- open(self, - filename, - mode='r', - bufsize=-1) --Open a file on the remote server. The arguments are the same as for
- python's built-in The mode indicates how the file is to be opened: Since 1.5.2, an bufsize parameter. 0
- turns off buffering, 1 uses line buffering, and any number
- greater than 1 (>1 ) uses that specific buffer size.
-
|
- put(self, - localpath, - remotepath) --Copy a local file (
|
- readlink(self, - path) -- Return the target of a symbolic link (shortcut). You can usesymlink to create these. The result may
- be either an absolute or relative pathname.
-
|
- remove(self, - path) -- Remove the file at the given path. -
|
- rename(self, - oldpath, - newpath) -- Rename a file or folder fromoldpath to
- newpath .
-
|
- rmdir(self, - path) -- Remove the folder namedpath .
-
|
- stat(self, - path) --Retrieve information about a file on the remote system. The return
- value is an object whose attributes correspond to the attributes of
- python's Unlike a python st_mode ,
- st_size , st_uid , st_gid ,
- st_atime , and st_mtime .
-
|
- symlink(self, - source, - dest) -- Create a symbolic link (shortcut) of thesource path at
- destination .
-
|
- unlink(self, - path) -- Remove the file at the given path. -
|
- utime(self, - path, - times) -- Set the access and modified times of the file specified by -path . If times is None , then the
- file's access and modified times are set to the current time.
- Otherwise, times must be a 2-tuple of numbers, of the form
- (atime, mtime) , which is used to set the access and
- modified times, respectively. This bizarre API is mimicked from python
- for the sake of consistency -- I apologize.
-
|
- _adjust_cwd(self, - path) -- Return an adjusted path if we're emulating a "current working - directory" for the server. -
|
- _convert_status(self, - msg) -- Raises EOFError or IOError on error status; otherwise does - nothing. -
|
Class Method Details |
---|
- from_transport(selfclass, - t) -- Create an SFTP client channel from an openTransport .
-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class SFTPError - - | -
|
-
-Exception
--+
- |
- SFTPError
-
Method Summary | |
---|---|
Inherited from Exception | |
- |
- |
- |
- |
- |
- |
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class SFTPFile - - | -
|
-
-object
--+ - | -BufferedFile
--+ - | - SFTPFile -
Method Summary | |
---|---|
- | __init__(self,
- sftp,
- handle,
- mode,
- bufsize)
- |
- | __del__(self)
- |
str - | -
--Ask the server for a hash of a section of this file. |
- |
--Close the file. |
float - | -
--Returns the timeout in seconds (as a float) associated with the socket -or ssh Channel used for this file. |
- |
--Pre-fetch the remaining contents of this file in anticipation of -future read calls. |
- |
--Set the file's current position, like stdio's fseek . |
- |
--Turn on/off the pipelining of write operations to this file. |
- |
--Set blocking or non-blocking mode on the underiying socket or ssh Channel . |
- |
--Set a timeout on read/write operations on the underlying socket or ssh - Channel . |
SFTPAttributes - | -
--Retrieve information about this file from the remote system. |
- | _async_response(self,
- t,
- msg)
- |
- |
--if there's a saved exception, raise & clear it |
- |
--(subclass override) Return the size of the file. |
- | _prefetch(self)
- |
- |
--(subclass override) Read data from the stream. |
- | _read_prefetch(self,
- size)
- |
- |
--(subclass override) Write data into the stream. |
Inherited from BufferedFile | |
iterator - | -
--Returns an iterator that can be used to iterate over the lines in this -file. |
- |
--Write out any data in the write buffer. |
str - | -
--Returns the next line from the input, or raises - StopIteration when EOF is hit. |
str - | -
--Read at most size bytes from the file (less if we hit the
-end of the file first). |
str - | -
--Read one entire line from the file. |
list - | -
--Read all remaining lines using readline and return them as a list. |
int - | -
--Return the file's current position. |
- |
--Write data to the file. |
- |
--Write a sequence of strings to the file. |
iterator - | -
--Identical to iter(f) . |
- |
- |
- |
--Subclasses call this method to initialize the BufferedFile. |
- |
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
int |
-MAX_REQUEST_SIZE = 32768 |
Inherited from BufferedFile | |
int |
-SEEK_CUR = 1 |
int |
-SEEK_END = 2 |
int |
-SEEK_SET = 0 |
int |
-_DEFAULT_BUFSIZE = 8192 |
Method Details |
---|
- check(self, - hash_algorithm, - offset=0, - length=0, - block_size=0) --Ask the server for a hash of a section of this file. This can be - used to verify a successful upload or download, or for various - rsync-like operations. -The file is hashed from Normally, check('sha1', 0, 1024, 512) will return a
- string of length 40. The first 20 bytes will be the SHA-1 of the first
- 512 bytes of the file, and the last 20 bytes will be the SHA-1 of the
- next 512 bytes.
-
|
- close(self, - _async=False) -- Close the file. Future read and write operations will fail. -
|
- gettimeout(self) -- Returns the timeout in seconds (as a float) associated with the - socket or sshChannel used for this file.
-
|
- prefetch(self) -- Pre-fetch the remaining contents of this file in anticipation of - futureread calls. If reading the entire file,
- pre-fetching can dramatically improve the download speed by avoiding
- roundtrip latency. The file's contents are incrementally buffered in a
- background thread.
-
|
- seek(self, - offset, - whence=0) -- Set the file's current position, like stdio'sfseek .
- Not all file objects support seeking.
-
|
- set_pipelined(self, - pipelined=True) --Turn on/off the pipelining of write operations to this file. When
- pipelining is on, paramiko won't wait for the server response after
- each write operation. Instead, they're collected as they come in. At
- the first non-write operation (including
|
- setblocking(self, - blocking) -- Set blocking or non-blocking mode on the underiying socket or sshChannel .
-
|
- settimeout(self, - timeout) -- Set a timeout on read/write operations on the underlying socket or - sshChannel .
-
|
- stat(self) -- Retrieve information about this file from the remote system. This is - exactly likeSFTP.stat , except that it operates on an
- already-open file.
-
|
- _check_exception(self) -- if there's a saved exception, raise & clear it -
|
- _get_size(self) -- (subclass override) Return the size of the file. This is - called from within_set_mode if the file is opened in append
- mode, so the file position can be tracked and seek and tell will work correctly. If the file is
- a stream that can't be randomly accessed, you don't need to override
- this method,
-
|
- _read(self, - size) -- (subclass override) Read data from the stream. Return -None or raise EOFError to indicate EOF.
-
|
- _write(self, - data) -- (subclass override) Write data into the stream. -
|
Class Variable Details |
---|
-
-MAX_REQUEST_SIZE-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class SFTPHandle - - | -
|
-
-object
--+
- |
- SFTPHandle
-
Abstract object representing a handle to an open file (or folder) in -an SFTP server implementation. Each handle has a string representation -used by the client to refer to the underlying file.
-Server implementations can (and should) subclass SFTPHandle to -implement features of a file handle, likestat
or chattr
.
-Method Summary | |
---|---|
- | __init__(self)
- |
int - | -
--Change the attributes of this file. |
- |
--When a client closes a file, this method is called on the handle. |
str - | -
--Read up to length bytes from this file, starting at
-position offset . |
SFTPAttributes or error
- code
- |
-
--Return an SFTPAttributes object referring to this
-open file, or an error code. |
- |
--Write data into this file at position
-offset . |
- | _get_name(self)
- |
- |
--Used by the SFTP server code to retreive a cached directory -listing. |
- |
--Used by the SFTP server code to cache a directory listing. |
- | _set_name(self,
- name)
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Method Details |
---|
- chattr(self, - attr) -- Change the attributes of this file. Theattr object
- will contain only those fields provided by the client in its request,
- so you should check for the presence of fields before using them.
-
|
- close(self) --When a client closes a file, this method is called on the handle. - Normally you would use this method to close the underlying OS level - file object(s). - The default implementation checks for attributes on -self named readfile and/or
- writefile , and if either or both are present, their
- close() methods are called. This means that if you are
- using the default implementations of read and write , this method's default
- implementation should be fine also.
-
|
- read(self, - offset, - length) --Read up to If the end of the file has been reached, this method may return an
- empty string to signify EOF, or it may also return self named readfile , and if present, performs
- the read operation on the python file-like object found there. (This is
- meant as a time saver for the common case where you are wrapping a
- python file object.)
-
|
- stat(self) -- Return anSFTPAttributes object referring to this
- open file, or an error code. This is equivalent to SFTPServerInterface.stat , except it's
- called on an open file instead of a path.
-
|
- write(self, - offset, - data) --Write self named writefile , and if present,
- performs the write operation on the python file-like object found
- there. The attribute is named differently from readfile to
- make it easy to implement read-only (or write-only) files, but if both
- attributes are present, they should refer to the same file.
-
|
- _get_next_files(self) -- Used by the SFTP server code to retreive a cached directory - listing. -
|
- _set_files(self, - files) -- Used by the SFTP server code to cache a directory listing. (In the - SFTP protocol, listing a directory is a multi-stage process requiring a - temporary handle.) -
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class SFTPServer - - | -
|
-
-object
--+ - | -_Verbose
--+ - | -Thread
--+ - | -SubsystemHandler
--+ - | -object
--+ | - | | -BaseSFTP
--+ - | - SFTPServer -
SubsystemHandler
, it can be (and is meant
-to be) set as the handler for "sftp"
requests. Use
-Transport.set_subsystem_handler
to activate
-this class.
-Method Summary | |
---|---|
- |
--The constructor for SFTPServer is meant to be called from within the - Transport as a subsystem handler. |
int - | -
--Convert an errno value (as from an OSError or
-IOError ) into a standard SFTP result code. (Static method)
- |
- |
--Perform any cleanup at the end of a subsystem. |
- |
--Change a file's attributes on the local filesystem. (Static method) - |
- |
--Process an ssh subsystem in server mode. |
- | _check_file(self,
- request_number,
- msg)
- |
- |
--convert SFTP-style open() flags to python's os.open() flags |
- | _open_folder(self,
- request_number,
- path)
- |
- | _process(self,
- t,
- request_number,
- msg)
- |
- | _read_folder(self,
- request_number,
- folder)
- |
- | _response(self,
- request_number,
- t,
- *arg)
- |
- | _send_handle_response(self,
- request_number,
- handle,
- folder)
- |
- | _send_status(self,
- request_number,
- code,
- desc)
- |
Inherited from BaseSFTP | |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Inherited from SubsystemHandler | |
ServerInterface
- |
-
--Return the ServerInterface object associated with this
-channel and subsystem. |
- |
- |
Inherited from Thread | |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Inherited from _Verbose | |
- |
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
Inherited from Thread | |
bool |
-_Thread__initialized = False
- |
Instance Method Details |
---|
- __init__(self,
- channel,
- name,
- server,
- sftp_si=<class 'paramiko.SFTPServerInterface'>,
- *largs,
- **kwargs)
-
- The constructor for SFTPServer is meant to be called from within the
- |
- finish_subsystem(self) -- Perform any cleanup at the end of a subsystem. The default - implementation just closes the channel. -
|
- start_subsystem(self, - name, - transport, - channel) --Process an ssh subsystem in server mode. This method is called on a - new object (and in a new thread) for each subsystem request. It is - assumed that all subsystem logic will take place here, and when the - subsystem is finished, this method will return. After this method - returns, the channel is closed. - The combination oftransport and channel
- are unique; this handler corresponds to exactly one Channel on one Transport .
-
|
- _convert_pflags(self, - pflags) -- convert SFTP-style open() flags to python's os.open() flags -
|
Static Method Details |
---|
- convert_errno(e) -- Convert an errno value (as from anOSError or
- IOError ) into a standard SFTP result code. This is a
- convenience function for trapping exceptions in server code and
- returning an appropriate result.
-
|
- set_file_attr(filename, - attr) --Change a file's attributes on the local filesystem. The contents of
-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class SFTPServerInterface - - | -
|
-
-object
--+
- |
- SFTPServerInterface
-
This class defines an interface for controlling the behavior of
-paramiko when using the SFTPServer
subsystem to provide an SFTP
-server.
Method Summary | |
---|---|
- |
--Create a new SFTPServerInterface object. |
- |
--Return the canonical form of a path on the server. |
int - | -
--Change the attributes of a file. |
list of SFTPAttributes or error
- code
- |
-
--Return a list of files within a given folder. |
SFTPAttributes or error
- code
- |
-
--Return an SFTPAttributes object for a path on the
-server, or an error code. |
int - | -
--Create a new directory with the given attributes. |
- |
--Open a file on the server and create a handle for future operations on -that file. |
str or error code - | -
--Return the target of a symbolic link (or shortcut) on the server. |
int - | -
--Delete a file, if possible. |
int - | -
--Rename (or move) a file. |
int - | -
--Remove a directory if it exists. |
- |
--The SFTP server session has just ended, either cleanly or via an -exception. |
- |
--The SFTP server session has just started. |
SFTPAttributes or error
- code
- |
-
--Return an SFTPAttributes object for a path on the
-server, or an error code. |
int - | -
--Create a symbolic link on the server, as new pathname - path , with target_path as the target of the
-link. |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Method Details |
---|
- __init__(self,
- server,
- *largs,
- **kwargs)
-
- Create a new SFTPServerInterface object. This method does nothing by
- default and is meant to be overridden by subclasses.
- |
- canonicalize(self, - path) --Return the canonical form of a path on the server. For example, if
- the server's home folder is You may find the python methods in os.path.normpath('/' +
- path) .
-
|
- chattr(self, - path, - attr) -- Change the attributes of a file. Theattr object will
- contain only those fields provided by the client in its request, so you
- should check for the presence of fields before using them.
-
|
- list_folder(self, - path) --Return a list of files within a given folder. The The list of files is expected to be a list of SFTP_* error codes, such as SFTP_PERMISSION_DENIED .
-
|
- lstat(self, - path) -- Return anSFTPAttributes object for a path on the
- server, or an error code. If your server supports symbolic links (also
- known as "aliases"), you should not follow them --
- instead, you should return data on the symlink or alias itself. (stat is the corresponding call that
- follows symlinks/aliases.)
-
|
- mkdir(self, - path, - attr) --Create a new directory with the given attributes. The
- attr object will contain only those fields provided
- by the client in its request, so you should use hasattr to
- check for the presense of fields before using them. In some cases, the
- attr object may be completely empty.
-
|
- open(self, - path, - flags, - attr) --Open a file on the server and create a handle for future operations
- on that file. On success, a new object subclassed from flags contains the requested mode for opening
- (read-only, write-append, etc) as a bitset of flags from the
- os module:
-
(One of attr object contains requested attributes of the
- file if it has to be created. Some or all attribute fields may be
- missing if the client didn't specify them.
-
|
- readlink(self, - path) -- Return the target of a symbolic link (or shortcut) on the server. If - the specified path doesn't refer to a symbolic link, an error should be - returned. -
|
- remove(self, - path) -- Delete a file, if possible. -
|
- rename(self, - oldpath, - newpath) -- Rename (or move) a file. The SFTP specification implies that this - method can be used to move an existing file into a different folder, - and since there's no other (easy) way to move files via SFTP, it's - probably a good idea to implement "move" in this method too, - even for files that cross disk partition boundaries, if at all - possible. -
|
- rmdir(self, - path) -- Remove a directory if it exists. Thepath should refer
- to an existing, empty folder -- otherwise this method should return an
- error.
-
|
- session_ended(self) -- The SFTP server session has just ended, either cleanly or via an - exception. This method is meant to be overridden to perform any - necessary cleanup before thisSFTPServerInterface object
- is destroyed.
-
|
- session_started(self) -- The SFTP server session has just started. This method is meant to be - overridden to perform any necessary setup before handling callbacks - from SFTP operations. -
|
- stat(self, - path) -- Return anSFTPAttributes object for a path on the
- server, or an error code. If your server supports symbolic links (also
- known as "aliases"), you should follow them. (lstat is the corresponding call that
- doesn't follow symlinks/aliases.)
-
|
- symlink(self, - target_path, - path) -- Create a symbolic link on the server, as new pathname -path , with target_path as the target of the
- link.
-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:48 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class SSHException - - | -
|
-
-Exception
--+
- |
- SSHException
-
BadAuthenticationType
,
- PasswordRequiredException
,
- PartialAuthentication
Method Summary | |
---|---|
Inherited from Exception | |
- |
- |
- |
- |
- |
- |
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:48 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class SecurityOptions - - | -
|
-
-object
--+
- |
- SecurityOptions
-
Simple object containing the security preferences of an ssh transport. -These are tuples of acceptable ciphers, digests, key types, and key -exchange algorithms, listed in order of preference.
-Changing the contents and/or order of these fields affects the -underlyingTransport
(but only if you change them
-before starting the session). If you try to add an algorithm that
-paramiko doesn't recognize, ValueError
will be raised. If
-you try to assign something besides a tuple to one of the fields,
-TypeError
will be raised.
-Since: ivysaur -
- - - -Method Summary | |
---|---|
- | __init__(self,
- transport)
- |
str - | -
--Returns a string representation of this object, for debugging. |
- | _get_ciphers(self)
- |
- | _get_compression(self)
- |
- | _get_digests(self)
- |
- | _get_kex(self)
- |
- | _get_key_types(self)
- |
- | _set(self,
- name,
- orig,
- x)
- |
- | _set_ciphers(self,
- x)
- |
- | _set_compression(self,
- x)
- |
- | _set_digests(self,
- x)
- |
- | _set_kex(self,
- x)
- |
- | _set_key_types(self,
- x)
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Property Summary | |
---|---|
- | ciphers : Symmetric encryption ciphers |
- | compression : Compression algorithms |
- | digests : Digest (one-way hash) algorithms |
- | kex : Key exchange algorithms |
- | key_types : Public-key algorithms |
Class Variable Summary | |
---|---|
list |
-__slots__ = ['ciphers', 'digests', 'key_types', 'kex', '...
- |
member_descriptor |
-_transport = <member '_transport' of 'SecurityOptions' o...
- |
Method Details |
---|
- __repr__(self)
-
- Returns a string representation of this object, for debugging.
- |
Property Details |
---|
-
-
-ciphers-Symmetric encryption ciphers -
|
-
-
-compression-Compression algorithms -
|
-
-
-digests-Digest (one-way hash) algorithms -
|
-
-
-kex-Key exchange algorithms - |
-
-
-key_types-Public-key algorithms -
|
Class Variable Details |
---|
-
-__slots__-
|
-
-_transport-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class ServerInterface - - | -
|
-
-object
--+
- |
- ServerInterface
-
This class defines an interface for controlling the behavior of -paramiko in server mode.
-Methods on this class are called from paramiko's primary thread, so -you shouldn't do too much work in them. (Certainly nothing that blocks or -sleeps.) -Method Summary | |
---|---|
int or InteractiveQuery
- |
-
--Begin an interactive authentication challenge, if supported. |
int or InteractiveQuery
- |
-
--Continue or finish an interactive authentication challenge, if -supported. |
int - | -
--Determine if a client may open channels with no (further) -authentication. |
int - | -
--Determine if a given username and password supplied by the client is -acceptable for use in authentication. |
int - | -
--Determine if a given key supplied by the client is acceptable for use -in authentication. |
bool - | -
--Determine if a shell command will be executed for the client. |
bool - | -
--Determine if a pseudo-terminal of the given dimensions (usually -requested for shell access) can be provided on the given channel. |
int - | -
--Determine if a channel request of a given type will be granted, and -return OPEN_SUCCEEDED or an error code. |
bool - | -
--Determine if a shell will be provided to the client on the given -channel. |
bool - | -
--Determine if a requested subsystem will be provided to the client on -the given channel. |
bool - | -
--Determine if the pseudo-terminal on the given channel can be -resized. |
bool - | -
--Handle a global request of the given kind . |
str - | -
--Return a list of authentication methods supported by the server. |
Inherited from object | |
- |
--x.__init__(...) initializes x; see x.__class__.__doc__ for -signature |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Method Details |
---|
- check_auth_interactive(self, - username, - submethods) --Begin an interactive authentication challenge, if supported. You
- should override this method in server mode if you want to support the
- Return AUTH_FAILED .
-
|
- check_auth_interactive_response(self, - responses) --Continue or finish an interactive authentication challenge, if
- supported. You should override this method in server mode if you want
- to support the Return If you wish to continue interactive authentication with more
- questions, you may return an AUTH_FAILED .
-
|
- check_auth_none(self, - username) --Determine if a client may open channels with no (further) - authentication. -Return AUTH_FAILED .
-
|
- check_auth_password(self, - username, - password) --Determine if a given username and password supplied by the client is - acceptable for use in authentication. -Return AUTH_FAILED .
-
|
- check_auth_publickey(self, - username, - key) --Determine if a given key supplied by the client is acceptable for - use in authentication. You should override this method in server mode - to check the username and key and decide if you would accept a - signature made using this key. -Return Note that you don't have to actually verify any key signtature here. - If you're willing to accept the key, paramiko will do the work of - verifying the client's signature. - The default implementation always returnsAUTH_FAILED .
-
|
- check_channel_exec_request(self, - channel, - command) --Determine if a shell command will be executed for the client. If
- this method returns False .
-
|
- check_channel_pty_request(self, - channel, - term, - width, - height, - pixelwidth, - pixelheight, - modes) --Determine if a pseudo-terminal of the given dimensions (usually - requested for shell access) can be provided on the given channel. - The default implementation always returnsFalse .
-
|
- check_channel_request(self, - kind, - chanid) --Determine if a channel request of a given type will be granted, and
- return
The OPEN_SUCCEEDED (or
- 0 ) to allow the channel request, or one of the following
- error codes to reject it:
-
OPEN_FAILED_ADMINISTRATIVELY_PROHIBITED .
-
|
- check_channel_shell_request(self, - channel) --Determine if a shell will be provided to the client on the given
- channel. If this method returns False .
-
- |
- check_channel_subsystem_request(self, - channel, - name) --Determine if a requested subsystem will be provided to the client on
- the given channel. If this method returns Transport.set_subsystem_handler . If one
- has been set, the handler is invoked and this method returns
- True . Otherwise it returns False .
-
|
- check_channel_window_change_request(self, - channel, - width, - height, - pixelwidth, - pixelheight) --Determine if the pseudo-terminal on the given channel can be - resized. This only makes sense if a pty was previously allocated on - it. - The default implementation always returnsFalse .
-
|
- check_global_request(self, - kind, - msg) --Handle a global request of the given There aren't any useful global requests defined, aside from port - forwarding, so usually this type of request is an extension to the - protocol. -If the request was successful and you would like to return - contextual data to the remote host, return a tuple. Items in the tuple - will be sent back with the successful result. (Note that the items in - the tuple can only be strings, ints, longs, or bools.) - The default implementation always returnsFalse ,
- indicating that it does not support any global requests.
-
|
- get_allowed_auths(self, - username) --Return a list of authentication methods supported by the server. - This list is sent to clients attempting to authenticate, to inform them - of authentication methods that might be successful. -The "list" is actually a string of comma-separated names
- of types of authentication. Possible values are
- "password" .
-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class SubsystemHandler - - | -
|
-
-object
--+ - | -_Verbose
--+ - | -Thread
--+ - | - SubsystemHandler -
SFTPServer
Handler for a subsytem in server mode. If you create a subclass of
-this class and pass it to Transport.set_subsystem_handler
, an object
-of this class will be created for each request for this subsystem. Each
-new object will be executed within its own new thread by calling start_subsystem
. When that method
-completes, the channel is closed.
MP3Handler
and
-registered it as the handler for subsystem "mp3"
,
-then whenever a client has successfully authenticated and requests
-subsytem "mp3"
, an object of class
-MP3Handler
will be created, and start_subsystem
will be called on it from a
-new thread.
-Since: ivysaur -
- - - -Method Summary | |
---|---|
- |
--Create a new handler for a channel. |
- |
--Perform any cleanup at the end of a subsystem. |
ServerInterface
- |
-
--Return the ServerInterface object associated with this
-channel and subsystem. |
- |
--Process an ssh subsystem in server mode. |
- | _run(self)
- |
Inherited from Thread | |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Inherited from _Verbose | |
- |
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
Inherited from Thread | |
bool |
-_Thread__initialized = False
- |
Method Details |
---|
- __init__(self,
- channel,
- name,
- server)
-
- Create a new handler for a channel. This is used by |
- finish_subsystem(self) -- Perform any cleanup at the end of a subsystem. The default - implementation just closes the channel. -
|
- get_server(self) -- Return theServerInterface object associated with
- this channel and subsystem.
-
|
- start_subsystem(self, - name, - transport, - channel) --Process an ssh subsystem in server mode. This method is called on a - new object (and in a new thread) for each subsystem request. It is - assumed that all subsystem logic will take place here, and when the - subsystem is finished, this method will return. After this method - returns, the channel is closed. - The combination oftransport and channel
- are unique; this handler corresponds to exactly one Channel on one Transport .
-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:48 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Class Transport - - | -
|
-
-object
--+ - | -_Verbose
--+ - | -Thread
--+ - | - Transport -
Channel
s, across the session. Multiple
-channels can be multiplexed across a single session (and often are, in
-the case of port forwardings).
-Method Summary | |
---|---|
- |
--Create a new SSH session over an existing socket, or socket-like -object. |
- | __del__(self)
- |
str - | -
--Returns a string representation of this object, for debugging. |
Channel
- |
-
--Return the next channel opened by the client over this transport, in -server mode. |
- |
--Add a host key to the list of keys used for server mode. |
list - | -
--Authenticate to the server interactively. |
list - | -
--Try to authenticate to the server using no authentication at all. |
list - | -
--Authenticate to the server using a password. |
list - | -
--Authenticate to the server using a private key. |
- |
--Close this session, and any open channels that are tied to it. |
- |
--Negotiate an SSH2 session, and optionally verify the server's host key -and authenticate using a password or private key. |
Exception - | -
--Return any exception that happened during the last server request. |
bool - | -
--Return True if the transport is currently logging hex
-dumps of protocol traffic. |
str - | -
--Return the channel name used for this transport's logging. |
PKey
- |
-
--Return the host key of the server (in client mode). |
SecurityOptions
- |
-
--Return a SecurityOptions object which can be used to
-tweak the encryption algorithms this transport will permit, and the order
-of preference for them. |
PKey
- |
-
--Return the active host key, in server mode. |
string - | -
--Return the username this connection is authenticated for. |
Message
- |
-
--Make a global request to the remote host. |
bool - | -
--Return true if this session is active (open). |
bool - | -
--Return true if this session is active and authenticated. |
bool - | -
--(optional) Load a file of prime moduli for use in doing -group-exchange key negotiation in server mode. (Static method) - |
Channel
- |
-
--Request a new channel to the server. |
Channel
- |
-
--Request a new channel to the server, of type - "session" . |
SFTPClient
- |
-
--Create an SFTP client channel from an open transport. |
bool - | -
--Force this session to switch to new keys. |
- | run(self)
- |
- |
--Send a junk packet across the encrypted link. |
- |
--Turn on/off logging a hex dump of protocol traffic at DEBUG level in -the logs. |
- |
--Turn on/off keepalive packets (default is off). |
- |
--Set the channel for this transport's logging. |
- |
--Set the handler class for a subsystem in server mode. |
- |
--Negotiate a new SSH2 session as a client. |
- |
--Negotiate a new SSH2 session as a server. |
- | stop_thread(self)
- |
- |
--Turn on/off compression. |
- |
--switch on newly negotiated encryption parameters for inbound -traffic |
- |
--switch on newly negotiated encryption parameters for outbound -traffic |
- | _auth_trigger(self)
- |
- | _check_banner(self)
- |
- |
--id is 'A' - 'F' for the various keys used by ssh |
- |
--used by a kex object to register the next packet type it expects to -see |
- | _get_cipher(self,
- name,
- key,
- iv)
- |
- |
--used by KexGex to find primes for group exchange |
- | _get_subsystem_handler(self,
- name)
- |
- | _log(self,
- level,
- msg)
- |
- | _negotiate_keys(self,
- m)
- |
- | _parse_channel_open(self,
- m)
- |
- | _parse_channel_open_failure(self,
- m)
- |
- | _parse_channel_open_success(self,
- m)
- |
- | _parse_debug(self,
- m)
- |
- | _parse_disconnect(self,
- m)
- |
- | _parse_global_request(self,
- m)
- |
- | _parse_kex_init(self,
- m)
- |
- | _parse_newkeys(self,
- m)
- |
- | _parse_request_failure(self,
- m)
- |
- | _parse_request_success(self,
- m)
- |
- |
--announce to the other side that we'd like to negotiate keys, and what -kind of key negotiation we support. |
- | _send_message(self,
- data)
- |
- |
--send a message, but block if we're in key negotiation. |
- |
--used by a kex object to set the K (root key) and H (exchange hash) |
- |
--used by a Channel to remove itself from the active channel list |
- | _verify_key(self,
- host_key,
- sig)
- |
Inherited from Thread | |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
Inherited from _Verbose | |
- |
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
dict |
-_channel_handler_table = {96: <unbound method Channel._h...
- |
dict |
-_cipher_info = {'blowfish-cbc': {'block-size': 8, 'key-s...
- |
str |
-_CLIENT_ID = 'paramiko_1.5.2'
- |
dict |
-_compression_info = {'none': (None, None), 'zlib': (<cla...
- |
dict |
-_handler_table = {80: <function _parse_global_request at...
- |
dict |
-_kex_info = {'diffie-hellman-group1-sha1': <class 'param...
- |
dict |
-_key_info = {'ssh-dss': <class 'paramiko.DSSKey'>, 'ssh-...
- |
dict |
-_mac_info = {'hmac-sha1': {'class': <module 'Crypto.Hash...
- |
NoneType |
-_modulus_pack = None |
tuple |
-_preferred_ciphers = ('aes128-cbc', 'blowfish-cbc', 'aes...
- |
tuple |
-_preferred_compression = ('none',)
- |
tuple |
-_preferred_kex = ('diffie-hellman-group1-sha1', 'diffie-...
- |
tuple |
-_preferred_keys = ('ssh-rsa', 'ssh-dss')
- |
tuple |
-_preferred_macs = ('hmac-sha1', 'hmac-md5', 'hmac-sha1-9...
- |
str |
-_PROTO_ID = '2.0'
- |
Inherited from Thread | |
bool |
-_Thread__initialized = False
- |
Instance Method Details |
---|
- __init__(self,
- sock)
-
- |
- __repr__(self)
-
- Returns a string representation of this object, for debugging.
- |
- accept(self, - timeout=None) -- Return the next channel opened by the client over this transport, in - server mode. If no channel is opened before the given timeout, -None is returned.
-
|
- add_server_key(self, - key) -- Add a host key to the list of keys used for server mode. When - behaving as a server, the host key is used to sign certain packets - during the SSH2 negotiation, so that the client can trust that we are - who we say we are. Because this is used for signing, the key must - contain private key info, not just the public half. Only one key of - each type (RSA or DSS) is kept. - - |
- auth_interactive(self, - username, - handler, - submethods='') --Authenticate to the server interactively. A handler is used to - answer arbitrary questions from the server. On many servers, this is - just a dumb wrapper around PAM. -This method will block until the authentication succeeds or fails, - peroidically calling the handler asynchronously to get answers to - authentication questions. The handler may be called more than once if - the server continues to ask questions. -The handler is expected to be a callable that will handle calls of
- the form: A sample call would thus be: The handler should return a list or tuple of answers to the server's - questions. - If the server requires multi-step authentication (which is very - rare), this method will return a list of auth types permissible for the - next step. Otherwise, in the normal case, an empty list is - returned. -
|
- auth_none(self, - username) -- Try to authenticate to the server using no authentication at all. - This will almost always fail. It may be useful for determining the list - of authentication types supported by the server, by catching theBadAuthenticationType exception
- raised.
-
|
- auth_password(self, - username, - password, - event=None, - fallback=True) --Authenticate to the server using a password. The username and - password are sent over an encrypted link. -If an Since 1.1, if no event is passed, this method will block until the - authentication succeeds or fails. On failure, an exception is raised. - Otherwise, the method simply returns. -Since 1.5, if no event is passed and
|
- auth_publickey(self, - username, - key, - event=None) --Authenticate to the server using a private key. The key is used to - sign data from the server, so it must include the private part. -If an Since 1.1, if no event is passed, this method will block until the - authentication succeeds or fails. On failure, an exception is raised. - Otherwise, the method simply returns. - If the server requires multi-step authentication (which is very - rare), this method will return a list of auth types permissible for the - next step. Otherwise, in the normal case, an empty list is - returned. -
|
- close(self) -- Close this session, and any open channels that are tied to it. -
|
- connect(self, - hostkey=None, - username='', - password=None, - pkey=None) --Negotiate an SSH2 session, and optionally verify the server's host
- key and authenticate using a password or private key. This is a
- shortcut for open_channel or open_session to get a Channel object, which is used for data
- transfer.
-
|
- get_exception(self) -- Return any exception that happened during the last server request. - This can be used to fetch more specific error information after using - calls likestart_client . The exception (if any) is
- cleared after this call.
-
|
- get_hexdump(self) -- ReturnTrue if the transport is currently logging hex
- dumps of protocol traffic.
-
|
- get_log_channel(self) -- Return the channel name used for this transport's logging. -
|
- get_remote_server_key(self) -- Return the host key of the server (in client mode). -
|
- get_security_options(self) -- Return aSecurityOptions object which can be used
- to tweak the encryption algorithms this transport will permit, and the
- order of preference for them.
-
|
- get_server_key(self) -- Return the active host key, in server mode. After negotiating with - the client, this method will return the negotiated host key. If only - one type of host key was set withadd_server_key , that's the only key that
- will ever be returned. But in cases where you have set more than one
- type of host key (for example, an RSA key and a DSS key), the key type
- will be negotiated by the client, and this method will return the key
- of the type agreed on. If the host key has not been negotiated yet,
- None is returned. In client mode, the behavior is
- undefined.
-
|
- get_username(self) -- Return the username this connection is authenticated for. If the - session is not authenticated (or authentication failed), this method - returnsNone .
-
|
- global_request(self, - kind, - data=None, - wait=True) -- Make a global request to the remote host. These are normally - extensions to the SSH2 protocol. -
|
- is_active(self) -- Return true if this session is active (open). -
|
- is_authenticated(self) -- Return true if this session is active and authenticated. -
|
- open_channel(self, - kind, - dest_addr=None, - src_addr=None) -- Request a new channel to the server.Channel s are socket-like objects used for
- the actual transfer of data across the session. You may only request a
- channel after negotiating encryption (using connect or start_client ) and authenticating.
-
|
- open_session(self) -- Request a new channel to the server, of type -"session" . This is just an alias for
- open_channel('session') .
-
- |
- open_sftp_client(self) -- Create an SFTP client channel from an open transport. On success, an - SFTP session will be opened with the remote host, and a new SFTPClient - object will be returned. -
|
- renegotiate_keys(self) -- Force this session to switch to new keys. Normally this is done - automatically after the session hits a certain number of packets or - bytes sent or received, but this method gives you the option of forcing - new keys whenever you want. Negotiating new keys causes a pause in - traffic both ways as the two sides swap keys and do computations. This - method returns when the session has switched to new keys, or the - session has died mid-negotiation. -
|
- send_ignore(self, - bytes=None) -- Send a junk packet across the encrypted link. This is sometimes used - to add "noise" to a connection to confuse would-be attackers. - It can also be used as a keep-alive for long lived connections - traversing firewalls. -
|
- set_hexdump(self, - hexdump) -- Turn on/off logging a hex dump of protocol traffic at DEBUG level in - the logs. Normally you would want this off (which is the default), but - if you are debugging something, it may be useful. -
|
- set_keepalive(self, - interval) -- Turn on/off keepalive packets (default is off). If this is set, - afterinterval seconds without sending any data over the
- connection, a "keepalive" packet will be sent (and ignored by
- the remote host). This can be useful to keep connections alive over a
- NAT, for example.
-
|
- set_log_channel(self, - name) -- Set the channel for this transport's logging. The default is -"paramiko.transport" but it can be set to
- anything you want. (See the logging module for more info.)
- SSH Channels will log to a sub-channel of the one specified.
-
|
- set_subsystem_handler(self, - name, - handler, - *larg, - **kwarg) --Set the handler class for a subsystem in server mode. If a request
- for this subsystem is made on an open ssh channel later, this handler
- will be constructed and called -- see SubsystemHandler constructor later.
-
|
- start_client(self, - event=None) --Negotiate a new SSH2 session as a client. This is the first step
- after creating a new If an event is passed in, this method returns immediately. When
- negotiation is done (successful or not), the given (Since 1.4) If auth_password or auth_publickey .
-
|
- start_server(self, - event=None, - server=None) --Negotiate a new SSH2 session as a server. This is the first step
- after creating a new If an event is passed in, this method returns immediately. When
- negotiation is done (successful or not), the given (Since 1.4) If After a successful negotiation, the client will need to
- authenticate. Override the methods check_channel_request in the given
- server object to allow channels to be opened.
-
|
- use_compression(self, - compress=True) -- Turn on/off compression. This will only have an affect before - starting the transport (ie before callingconnect , etc). By default, compression is
- off since it negatively affects interactive sessions and is not fully
- tested.
-
|
- _activate_inbound(self) -- switch on newly negotiated encryption parameters for inbound - traffic -
|
- _activate_outbound(self) -- switch on newly negotiated encryption parameters for outbound - traffic -
|
- _compute_key(self, - id, - nbytes) -- id is 'A' - 'F' for the various keys used by ssh -
|
- _expect_packet(self, - type) -- used by a kex object to register the next packet type it expects to - see -
|
- _get_modulus_pack(self) -- used by KexGex to find primes for group exchange -
|
- _send_kex_init(self) -- announce to the other side that we'd like to negotiate keys, and - what kind of key negotiation we support. -
|
- _send_user_message(self, - data) -- send a message, but block if we're in key negotiation. this is used - for user-initiated requests. -
|
- _set_K_H(self, - k, - h) -- used by a kex object to set the K (root key) and H (exchange - hash) -
|
- _unlink_channel(self, - chanid) -- used by a Channel to remove itself from the active channel list -
|
Static Method Details |
---|
- load_server_moduli(filename=None) --(optional) Load a file of prime moduli for use in doing - group-exchange key negotiation in server mode. It's a rather obscure - option and can be safely ignored. - In server mode, the remote client may request - "group-exchange" key negotiation, which asks the server to - send a random prime number that fits certain criteria. These primes are - pretty difficult to compute, so they can't be generated on demand. But - many systems contain a file of suitable primes (usually named something - like/etc/ssh/moduli ). If you call
- load_server_moduli and it returns True , then
- this file of primes has been loaded and we will support
- "group-exchange" in server mode. Otherwise server mode will
- just claim that it doesn't support that method of key negotiation.
-
|
Class Variable Details |
---|
-
-_channel_handler_table-
|
-
-_cipher_info-
|
-
-_CLIENT_ID-
|
-
-_compression_info-
|
-
-_handler_table-
|
-
-_kex_info-
|
-
-_key_info-
|
-
-_mac_info-
|
-
-_modulus_pack-
|
-
-_preferred_ciphers-
|
-
-_preferred_compression-
|
-
-_preferred_kex-
|
-
-_preferred_keys-
|
-
-_preferred_macs-
|
-
-_PROTO_ID-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:48 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module agent - - | -
|
-
Variable Summary | |
---|---|
int |
-SSH2_AGENT_IDENTITIES_ANSWER = 12 |
int |
-SSH2_AGENT_SIGN_RESPONSE = 14 |
int |
-SSH2_AGENTC_REQUEST_IDENTITIES = 11 |
int |
-SSH2_AGENTC_SIGN_REQUEST = 13 |
Variable Details |
---|
-
-SSH2_AGENT_IDENTITIES_ANSWER-
|
-
-SSH2_AGENT_SIGN_RESPONSE-
|
-
-SSH2_AGENTC_REQUEST_IDENTITIES-
|
-
-SSH2_AGENTC_SIGN_REQUEST-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module auth_handler - - | -
|
-
AuthHandler
-Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module ber - - | -
|
-
Classes | |
---|---|
- BER |
- Robey's tiny little attempt at a BER decoder. |
Exceptions | |
---|---|
- BERException |
-
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module ber :: - Class BER - - | -
|
-
-object
--+
- |
- BER
-
Method Summary | |
---|---|
- | __init__(self,
- content)
- |
- | __repr__(self)
- |
- | __str__(self)
- |
- | decode(self)
- |
- | decode_next(self)
- |
- | decode_sequence(data)
-- (Static method) - |
- | encode(self,
- x)
- |
- | encode_sequence(data)
-- (Static method) - |
- | encode_tlv(self,
- ident,
- val)
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__setattr__('name', value) <==> x.name = value |
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module ber :: - Class BERException - - | -
|
-
-Exception
--+
- |
- BERException
-
Method Summary | |
---|---|
Inherited from Exception | |
- |
- |
- |
- |
- |
- |
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module channel - - | -
|
-
Classes | |
---|---|
- ChannelStderrFile |
-
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module channel :: - Class ChannelStderrFile - - | -
|
-
-object
--+ - | -BufferedFile
--+ - | -ChannelFile
--+ - | - ChannelStderrFile -
Method Summary | |
---|---|
- | __init__(self,
- channel,
- mode,
- bufsize)
- |
- |
--(subclass override) Read data from the stream. |
- |
--(subclass override) Write data into the stream. |
Inherited from ChannelFile | |
str - | -
--Returns a string representation of this object, for debugging. |
- |
--Set the file's current position, like stdio's fseek . |
Inherited from BufferedFile | |
- |
- |
iterator - | -
--Returns an iterator that can be used to iterate over the lines in this -file. |
- |
--Close the file. |
- |
--Write out any data in the write buffer. |
str - | -
--Returns the next line from the input, or raises - StopIteration when EOF is hit. |
str - | -
--Read at most size bytes from the file (less if we hit the
-end of the file first). |
str - | -
--Read one entire line from the file. |
list - | -
--Read all remaining lines using readline and return them as a list. |
int - | -
--Return the file's current position. |
- |
--Write data to the file. |
- |
--Write a sequence of strings to the file. |
iterator - | -
--Identical to iter(f) . |
- |
--(subclass override) Return the size of the file. |
- |
- |
- |
--Subclasses call this method to initialize the BufferedFile. |
- |
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
Inherited from BufferedFile | |
int |
-SEEK_CUR = 1 |
int |
-SEEK_END = 2 |
int |
-SEEK_SET = 0 |
int |
-_DEFAULT_BUFSIZE = 8192 |
Method Details |
---|
- _read(self, - size) -- (subclass override) Read data from the stream. Return -None or raise EOFError to indicate EOF.
-
|
- _write(self, - data) -- (subclass override) Write data into the stream. -
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:46 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module common - - | -
|
-
Variable Summary | |
---|---|
int |
-AUTH_FAILED = 2 |
int |
-AUTH_PARTIALLY_SUCCESSFUL = 1 |
int |
-AUTH_SUCCESSFUL = 0 |
dict |
-CONNECTION_FAILED_CODE = {1: 'Administratively prohibite...
- |
int |
-CRITICAL = 50 |
int |
-DEBUG = 10 |
int |
-DISCONNECT_AUTH_CANCELLED_BY_USER = 13 |
int |
-DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE = 14 |
int |
-DISCONNECT_SERVICE_NOT_AVAILABLE = 7 |
int |
-ERROR = 40 |
int |
-INFO = 20 |
int |
-MSG_CHANNEL_CLOSE = 97 |
int |
-MSG_CHANNEL_DATA = 94 |
int |
-MSG_CHANNEL_EOF = 96 |
int |
-MSG_CHANNEL_EXTENDED_DATA = 95 |
int |
-MSG_CHANNEL_FAILURE = 100 |
int |
-MSG_CHANNEL_OPEN = 90 |
int |
-MSG_CHANNEL_OPEN_FAILURE = 92 |
int |
-MSG_CHANNEL_OPEN_SUCCESS = 91 |
int |
-MSG_CHANNEL_REQUEST = 98 |
int |
-MSG_CHANNEL_SUCCESS = 99 |
int |
-MSG_CHANNEL_WINDOW_ADJUST = 93 |
int |
-MSG_DEBUG = 4 |
int |
-MSG_DISCONNECT = 1 |
int |
-MSG_GLOBAL_REQUEST = 80 |
int |
-MSG_IGNORE = 2 |
int |
-MSG_KEXINIT = 20 |
dict |
-MSG_NAMES = {1: 'disconnect', 2: 'ignore', 3: 'unimpleme...
- |
int |
-MSG_NEWKEYS = 21 |
int |
-MSG_REQUEST_FAILURE = 82 |
int |
-MSG_REQUEST_SUCCESS = 81 |
int |
-MSG_SERVICE_ACCEPT = 6 |
int |
-MSG_SERVICE_REQUEST = 5 |
int |
-MSG_UNIMPLEMENTED = 3 |
int |
-MSG_USERAUTH_BANNER = 53 |
int |
-MSG_USERAUTH_FAILURE = 51 |
int |
-MSG_USERAUTH_INFO_REQUEST = 60 |
int |
-MSG_USERAUTH_INFO_RESPONSE = 61 |
int |
-MSG_USERAUTH_PK_OK = 60 |
int |
-MSG_USERAUTH_REQUEST = 50 |
int |
-MSG_USERAUTH_SUCCESS = 52 |
int |
-WARNING = 30 |
Variable Details |
---|
-
-AUTH_FAILED-
|
-
-AUTH_PARTIALLY_SUCCESSFUL-
|
-
-AUTH_SUCCESSFUL-
|
-
-CONNECTION_FAILED_CODE-
|
-
-CRITICAL-
|
-
-DEBUG-
|
-
-DISCONNECT_AUTH_CANCELLED_BY_USER-
|
-
-DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE-
|
-
-DISCONNECT_SERVICE_NOT_AVAILABLE-
|
-
-ERROR-
|
-
-INFO-
|
-
-MSG_CHANNEL_CLOSE-
|
-
-MSG_CHANNEL_DATA-
|
-
-MSG_CHANNEL_EOF-
|
-
-MSG_CHANNEL_EXTENDED_DATA-
|
-
-MSG_CHANNEL_FAILURE-
|
-
-MSG_CHANNEL_OPEN-
|
-
-MSG_CHANNEL_OPEN_FAILURE-
|
-
-MSG_CHANNEL_OPEN_SUCCESS-
|
-
-MSG_CHANNEL_REQUEST-
|
-
-MSG_CHANNEL_SUCCESS-
|
-
-MSG_CHANNEL_WINDOW_ADJUST-
|
-
-MSG_DEBUG-
|
-
-MSG_DISCONNECT-
|
-
-MSG_GLOBAL_REQUEST-
|
-
-MSG_IGNORE-
|
-
-MSG_KEXINIT-
|
-
-MSG_NAMES-
|
-
-MSG_NEWKEYS-
|
-
-MSG_REQUEST_FAILURE-
|
-
-MSG_REQUEST_SUCCESS-
|
-
-MSG_SERVICE_ACCEPT-
|
-
-MSG_SERVICE_REQUEST-
|
-
-MSG_UNIMPLEMENTED-
|
-
-MSG_USERAUTH_BANNER-
|
-
-MSG_USERAUTH_FAILURE-
|
-
-MSG_USERAUTH_INFO_REQUEST-
|
-
-MSG_USERAUTH_INFO_RESPONSE-
|
-
-MSG_USERAUTH_PK_OK-
|
-
-MSG_USERAUTH_REQUEST-
|
-
-MSG_USERAUTH_SUCCESS-
|
-
-WARNING-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module compress - - | -
|
-
Classes | |
---|---|
- ZlibCompressor |
- |
- ZlibDecompressor |
-
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:46 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module compress :: - Class ZlibCompressor - - | -
|
-
-object
--+
- |
- ZlibCompressor
-
Method Summary | |
---|---|
- | __init__(self)
- |
- | __call__(self,
- data)
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module compress :: - Class ZlibDecompressor - - | -
|
-
-object
--+
- |
- ZlibDecompressor
-
Method Summary | |
---|---|
- | __init__(self)
- |
- | __call__(self,
- data)
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module dsskey - - | -
|
-
DSSKey
-Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module file - - | -
|
-
Variable Summary | |
---|---|
int |
-_FLAG_APPEND = 4 |
int |
-_FLAG_BINARY = 16 |
int |
-_FLAG_BUFFERED = 32 |
int |
-_FLAG_LINE_BUFFERED = 64 |
int |
-_FLAG_READ = 1 |
int |
-_FLAG_UNIVERSAL_NEWLINE = 128 |
int |
-_FLAG_WRITE = 2 |
Variable Details |
---|
-
-_FLAG_APPEND-
|
-
-_FLAG_BINARY-
|
-
-_FLAG_BUFFERED-
|
-
-_FLAG_LINE_BUFFERED-
|
-
-_FLAG_READ-
|
-
-_FLAG_UNIVERSAL_NEWLINE-
|
-
-_FLAG_WRITE-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module kex_gex - - | -
|
-
KexGroup1
where the prime "p" and
-generator "g" are provided by the server. A bit more work is
-required on the client side, and a lot more on the server
-side.
-Classes | |
---|---|
- KexGex |
-
Variable Summary | |
---|---|
int |
-_MSG_KEXDH_GEX_GROUP = 31 |
int |
-_MSG_KEXDH_GEX_INIT = 32 |
int |
-_MSG_KEXDH_GEX_REPLY = 33 |
int |
-_MSG_KEXDH_GEX_REQUEST = 34 |
Variable Details |
---|
-
-_MSG_KEXDH_GEX_GROUP-
|
-
-_MSG_KEXDH_GEX_INIT-
|
-
-_MSG_KEXDH_GEX_REPLY-
|
-
-_MSG_KEXDH_GEX_REQUEST-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module kex_gex :: - Class KexGex - - | -
|
-
-object
--+
- |
- KexGex
-
Method Summary | |
---|---|
- | __init__(self,
- transport)
- |
- | _generate_x(self)
- |
- | _parse_kexdh_gex_group(self,
- m)
- |
- | _parse_kexdh_gex_init(self,
- m)
- |
- | _parse_kexdh_gex_reply(self,
- m)
- |
- | _parse_kexdh_gex_request(self,
- m)
- |
- | parse_next(self,
- ptype,
- m)
- |
- | start_kex(self)
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
int |
-max_bits = 8192 |
int |
-min_bits = 1024 |
str |
-name = 'diffie-hellman-group-exchange-sha1'
- |
int |
-preferred_bits = 2048 |
Class Variable Details |
---|
-
-max_bits-
|
-
-min_bits-
|
-
-name-
|
-
-preferred_bits-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:48 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module kex_group1 - - | -
|
-
Classes | |
---|---|
- KexGroup1 |
-
Variable Summary | |
---|---|
int |
-_MSG_KEXDH_INIT = 30 |
int |
-_MSG_KEXDH_REPLY = 31 |
int |
-G = 2 |
long |
-P = 1797693134862315907708391567937874531978602960487560...
- |
Variable Details |
---|
-
-_MSG_KEXDH_INIT-
|
-
-_MSG_KEXDH_REPLY-
|
-
-G-
|
-
-P-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module kex_group1 :: - Class KexGroup1 - - | -
|
-
-object
--+
- |
- KexGroup1
-
Method Summary | |
---|---|
- | __init__(self,
- transport)
- |
- | _generate_x(self)
- |
- | _parse_kexdh_init(self,
- m)
- |
- | _parse_kexdh_reply(self,
- m)
- |
- | parse_next(self,
- ptype,
- m)
- |
- | start_kex(self)
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
str |
-name = 'diffie-hellman-group1-sha1'
- |
Class Variable Details |
---|
-
-name-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module logging22 - - | -
|
-
Classes | |
---|---|
- Formatter |
- |
- logger |
- |
- StreamHandler |
-
Function Summary | |
---|---|
- | getLogger(name)
- |
Variable Summary | |
---|---|
logger |
-_logger = <paramiko.logging22.logger object at 0xb7b2254...
- |
int |
-CRITICAL = 50 |
int |
-DEBUG = 10 |
int |
-ERROR = 40 |
int |
-INFO = 20 |
int |
-WARNING = 30 |
Variable Details |
---|
-
-_logger-
|
-
-CRITICAL-
|
-
-DEBUG-
|
-
-ERROR-
|
-
-INFO-
|
-
-WARNING-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module logging22 :: - Class Formatter - - | -
|
-
-object
--+
- |
- Formatter
-
Method Summary | |
---|---|
- | __init__(self,
- x,
- y)
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:48 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module logging22 :: - Class StreamHandler - - | -
|
-
-object
--+
- |
- StreamHandler
-
Method Summary | |
---|---|
- | __init__(self,
- f)
- |
- | setFormatter(self,
- f)
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module logging22 :: - Class logger - - | -
|
-
-object
--+
- |
- logger
-
Method Summary | |
---|---|
- | __init__(self)
- |
- | addFilter(self,
- filter)
- |
- | addHandler(self,
- h)
- |
- | log(self,
- level,
- text)
- |
- | setLevel(self,
- level)
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module message - - | -
|
-
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:46 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module packet - - | -
|
-
Exceptions | |
---|---|
- NeedRekeyException |
-
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:48 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module packet :: - Class NeedRekeyException - - | -
|
-
-Exception
--+
- |
- NeedRekeyException
-
Method Summary | |
---|---|
Inherited from Exception | |
- |
- |
- |
- |
- |
- |
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module pipe - - | -
|
-
Classes | |
---|---|
- PosixPipe |
- |
- WindowsPipe |
- On Windows, only an OS-level "WinSock" may be used in -select(), but reads and writes must be to the actual socket object. |
Function Summary | |
---|---|
- | make_pipe()
- |
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module pipe :: - Class PosixPipe - - | -
|
-
-object
--+
- |
- PosixPipe
-
Method Summary | |
---|---|
- | __init__(self)
- |
- | clear(self)
- |
- | close(self)
- |
- | fileno(self)
- |
- | set(self)
- |
- | set_forever(self)
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:46 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module pipe :: - Class WindowsPipe - - | -
|
-
-object
--+
- |
- WindowsPipe
-
Method Summary | |
---|---|
- | __init__(self)
- |
- | clear(self)
- |
- | close(self)
- |
- | fileno(self)
- |
- | set(self)
- |
- | set_forever(self)
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:46 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module pkey - - | -
|
-
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module primes - - | -
|
-
Classes | |
---|---|
- ModulusPack |
- convenience object for holding the contents of the /etc/ssh/moduli -file, on systems that have such a file. |
Function Summary | |
---|---|
- |
--primtive attempt at prime generation |
- |
--returns a random # from 0 to N-1 |
Function Details |
---|
- _generate_prime(bits, - randpool) -- primtive attempt at prime generation -
|
- _roll_random(rpool, - n) -- returns a random # from 0 to N-1 -
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:48 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module primes :: - Class ModulusPack - - | -
|
-
-object
--+
- |
- ModulusPack
-
Method Summary | |
---|---|
- | __init__(self,
- rpool)
- |
- | _parse_modulus(self,
- line)
- |
- | get_modulus(self,
- min,
- prefer,
- max)
- |
- |
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Method Details |
---|
- read_file(self, - filename) --
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:48 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module rsakey - - | -
|
-
RSAKey
-Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:48 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module server - - | -
|
-
ServerInterface
is an interface to override
-for server support.
-Classes | |
---|---|
- InteractiveQuery |
- A query (set of prompts) for a user during interactive -authentication. |
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module server :: - Class InteractiveQuery - - | -
|
-
-object
--+
- |
- InteractiveQuery
-
Method Summary | |
---|---|
- |
--Create a new interactive query to send to the client. |
- |
--Add a prompt to this query. |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Method Details |
---|
- __init__(self,
- name='',
- instructions='',
- *prompts)
-
- Create a new interactive query to send to the client. The name and
- instructions are optional, but are generally displayed to the end user.
- A list of prompts may be included, or they may be added via the |
- add_prompt(self, - prompt, - echo=True) -- Add a prompt to this query. The prompt should be a (reasonably - short) string. Multiple prompts can be added to the same query. -
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module sftp - - | -
|
-
Variable Summary | |
---|---|
int |
-CMD_ATTRS = 105 |
int |
-CMD_CLOSE = 4 |
int |
-CMD_DATA = 103 |
int |
-CMD_EXTENDED = 200 |
int |
-CMD_EXTENDED_REPLY = 201 |
int |
-CMD_FSETSTAT = 10 |
int |
-CMD_FSTAT = 8 |
int |
-CMD_HANDLE = 102 |
int |
-CMD_INIT = 1 |
int |
-CMD_LSTAT = 7 |
int |
-CMD_MKDIR = 14 |
int |
-CMD_NAME = 104 |
dict |
-CMD_NAMES = {1: 'init', 2: 'version', 3: 'open', 4: 'clo...
- |
int |
-CMD_OPEN = 3 |
int |
-CMD_OPENDIR = 11 |
int |
-CMD_READ = 5 |
int |
-CMD_READDIR = 12 |
int |
-CMD_READLINK = 19 |
int |
-CMD_REALPATH = 16 |
int |
-CMD_REMOVE = 13 |
int |
-CMD_RENAME = 18 |
int |
-CMD_RMDIR = 15 |
int |
-CMD_SETSTAT = 9 |
int |
-CMD_STAT = 17 |
int |
-CMD_STATUS = 101 |
int |
-CMD_SYMLINK = 20 |
int |
-CMD_VERSION = 2 |
int |
-CMD_WRITE = 6 |
int |
-SFTP_BAD_MESSAGE = 5 |
int |
-SFTP_CONNECTION_LOST = 7 |
list |
-SFTP_DESC = ['Success', 'End of file', 'No such file', '...
- |
int |
-SFTP_EOF = 1 |
int |
-SFTP_FAILURE = 4 |
int |
-SFTP_FLAG_APPEND = 4 |
int |
-SFTP_FLAG_CREATE = 8 |
int |
-SFTP_FLAG_EXCL = 32 |
int |
-SFTP_FLAG_READ = 1 |
int |
-SFTP_FLAG_TRUNC = 16 |
int |
-SFTP_FLAG_WRITE = 2 |
int |
-SFTP_NO_CONNECTION = 6 |
int |
-SFTP_NO_SUCH_FILE = 2 |
int |
-SFTP_OK = 0 |
int |
-SFTP_OP_UNSUPPORTED = 8 |
int |
-SFTP_PERMISSION_DENIED = 3 |
int |
-_VERSION = 3 |
Variable Details |
---|
-
-CMD_ATTRS-
|
-
-CMD_CLOSE-
|
-
-CMD_DATA-
|
-
-CMD_EXTENDED-
|
-
-CMD_EXTENDED_REPLY-
|
-
-CMD_FSETSTAT-
|
-
-CMD_FSTAT-
|
-
-CMD_HANDLE-
|
-
-CMD_INIT-
|
-
-CMD_LSTAT-
|
-
-CMD_MKDIR-
|
-
-CMD_NAME-
|
-
-CMD_NAMES-
|
-
-CMD_OPEN-
|
-
-CMD_OPENDIR-
|
-
-CMD_READ-
|
-
-CMD_READDIR-
|
-
-CMD_READLINK-
|
-
-CMD_REALPATH-
|
-
-CMD_REMOVE-
|
-
-CMD_RENAME-
|
-
-CMD_RMDIR-
|
-
-CMD_SETSTAT-
|
-
-CMD_STAT-
|
-
-CMD_STATUS-
|
-
-CMD_SYMLINK-
|
-
-CMD_VERSION-
|
-
-CMD_WRITE-
|
-
-SFTP_BAD_MESSAGE-
|
-
-SFTP_CONNECTION_LOST-
|
-
-SFTP_DESC-
|
-
-SFTP_EOF-
|
-
-SFTP_FAILURE-
|
-
-SFTP_FLAG_APPEND-
|
-
-SFTP_FLAG_CREATE-
|
-
-SFTP_FLAG_EXCL-
|
-
-SFTP_FLAG_READ-
|
-
-SFTP_FLAG_TRUNC-
|
-
-SFTP_FLAG_WRITE-
|
-
-SFTP_NO_CONNECTION-
|
-
-SFTP_NO_SUCH_FILE-
|
-
-SFTP_OK-
|
-
-SFTP_OP_UNSUPPORTED-
|
-
-SFTP_PERMISSION_DENIED-
|
-
-_VERSION-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module sftp_attr - - | -
|
-
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module sftp_client - - | -
|
-
Function Summary | |
---|---|
- |
--if a str is not ascii, decode its utf8 into unicode |
Function Details |
---|
- _to_unicode(s) -- if a str is not ascii, decode its utf8 into unicode -
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module sftp_file - - | -
|
-
SFTPFile
-Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module sftp_handle - - | -
|
-
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module sftp_server - - | -
|
-
Variable Summary | |
---|---|
dict |
-_hash_class = {'sha1': <module 'Crypto.Hash.SHA' from '/...
- |
Variable Details |
---|
-
-_hash_class-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module sftp_si - - | -
|
-
SFTPServerInterface
is an interface to
-override for SFTP server support.
-Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:48 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module ssh_exception - - | -
|
-
Exceptions | |
---|---|
- PartialAuthentication |
- An internal exception thrown in the case of partial -authentication. |
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:46 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module ssh_exception :: - Class PartialAuthentication - - | -
|
-
-Exception
--+ - | -SSHException
--+ - | - PartialAuthentication -
Method Summary | |
---|---|
- | __init__(self,
- types)
- |
Inherited from Exception | |
- |
- |
- |
- |
Class Variable Summary | |
---|---|
list |
-allowed_types = []
- |
Class Variable Details |
---|
-
-allowed_types-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module transport - - | -
|
-
Transport
handles the core SSH2
-protocol.
-Function Summary | |
---|---|
- | _join_lingering_threads()
- |
Variable Summary | |
---|---|
list |
-_active_threads = []
- |
Variable Details |
---|
-
-_active_threads-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module util - - | -
|
-
Classes | |
---|---|
- PFilter |
-
Function Summary | |
---|---|
- | bit_length(n)
- |
- |
--turns a long-int into a normalized byte string (adapted from -Crypto.Util.number) |
- | format_binary(data,
- prefix)
- |
- | format_binary_line(data)
- |
- | format_binary_weird(data)
- |
string - | -
--Given a password, passphrase, or other human-source key, scramble it -through a secure hash into some keyworthy bytes. |
- | get_logger(name)
- |
- | get_thread_id()
- |
- |
--turn a string into a hex sequence |
- |
--turns a normalized byte string into a long-int (adapted from -Crypto.Util.number) |
dict(hostname, dict(keytype, PKey ))
- |
-
--Read a file of known SSH host keys, in the format used by openssh, and -return a compound dict of hostname -> keytype -> PKey . |
- |
--send paramiko logs to a logfile, if they're not already going -somewhere |
- |
--Return a dict of config options for a given hostname. |
- | mod_inverse(x,
- m)
- |
object - | -
--Parse a config file of the format used by OpenSSH, and return an -object that can be used to make queries to lookup_ssh_host_config . |
- | safe_string(s)
- |
- | tb_strings()
- |
- |
--turn a hex sequence back into a string |
Variable Summary | |
---|---|
int |
-_g_thread_counter = 0 |
dict |
-_g_thread_ids = {}
- |
lock |
-_g_thread_lock = <thread.lock object at 0xb7df2180>
- |
PFilter |
-_pfilter = <paramiko.util.PFilter object at 0xb7b39dac>
- |
Function Details |
---|
- deflate_long(n, - add_sign_padding=True) -- turns a long-int into a normalized byte string (adapted from - Crypto.Util.number) -
|
- generate_key_bytes(hashclass, - salt, - key, - nbytes) -- Given a password, passphrase, or other human-source key, scramble it - through a secure hash into some keyworthy bytes. This specific - algorithm is used for encrypting/decrypting private key files. -
|
- hexify(s) -- turn a string into a hex sequence -
|
- inflate_long(s, - always_positive=False) -- turns a normalized byte string into a long-int (adapted from - Crypto.Util.number) -
|
- load_host_keys(filename) --Read a file of known SSH host keys, in the format used by openssh,
- and return a compound dict of os.path.expanduser("~/.ssh/known_hosts") .
-
|
- log_to_file(filename, - level=10) -- send paramiko logs to a logfile, if they're not already going - somewhere -
|
- lookup_ssh_host_config(hostname, - config) --Return a dict of config options for a given hostname. The
- The host-matching rules of OpenSSH's "port" , not "Port" .
- No other processing is done to the keys or values.
-
|
- parse_ssh_config(file_obj) --Parse a config file of the format used by OpenSSH, and return an
- object that can be used to make queries to
|
- unhexify(s) -- turn a hex sequence back into a string -
|
Variable Details |
---|
-
-_g_thread_counter-
|
-
-_g_thread_ids-
|
-
-_g_thread_lock-
|
-
-_pfilter-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:48 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Package paramiko :: - Module util :: - Class PFilter - - | -
|
-
-object
--+
- |
- PFilter
-
Method Summary | |
---|---|
- | filter(self,
- record)
- |
Inherited from object | |
- |
--x.__init__(...) initializes x; see x.__class__.__doc__ for -signature |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:48 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Module threading :: - Class Thread - - | -
|
-
-object
--+ - | -_Verbose
--+ - | - Thread -
SubsystemHandler
,
- Transport
Method Summary | |
---|---|
- | __init__(self,
- group,
- target,
- name,
- args,
- kwargs,
- verbose)
- |
(type, value, traceback) | -
--Return information about the most recent exception caught by an except -clause in the current stack frame or in an older stack frame. |
- | __repr__(self)
- |
- | getName(self)
- |
- | isAlive(self)
- |
- | isDaemon(self)
- |
- | join(self,
- timeout)
- |
- | run(self)
- |
- | setDaemon(self,
- daemonic)
- |
- | setName(self,
- name)
- |
- | start(self)
- |
- | __bootstrap(self)
- |
- |
--Remove current thread from the dict of currently running threads. |
- | __stop(self)
- |
- | _set_daemon(self)
- |
Inherited from _Verbose | |
- |
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
bool |
-_Thread__initialized = False
- |
Method Details |
---|
- __delete(self) -- Remove current thread from the dict of currently running - threads. -
|
Class Variable Details |
---|
-
-_Thread__initialized-
|
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:47 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- - Module threading :: - Class _Verbose - - | -
|
-
-object
--+
- |
- _Verbose
-
Thread
Method Summary | |
---|---|
- | __init__(self,
- verbose)
- |
- | _note(self,
- format,
- *args)
- |
Inherited from object | |
- |
--x.__delattr__('name') <==> del x.name |
- |
--x.__getattribute__('name') <==> x.name |
- |
--x.__hash__() <==> hash(x) |
- |
--T.__new__(S, ...) -> a new object with type S, a subtype of T |
- |
--helper for pickle |
- |
--helper for pickle |
- |
--x.__repr__() <==> repr(x) |
- |
--x.__setattr__('name', value) <==> x.name = value |
- |
--x.__str__() <==> str(x) |
Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:48 2005 | -http://epydoc.sf.net | -
Home | -Trees | -Index | -Help | -- |
---|
- | -
|
-
paramiko
: Paramiko (a combination of the esperanto words for
-"paranoid" and "friend") is a module for python 2.3
-or greater that implements the SSH2 protocol for secure (encrypted and
-authenticated) connections to remote machines.
- agent
: SSH Agent interface for Unix clients.
- dsskey
: DSSKey
- file
: BufferedFile.
- message
: Implementation of an SSH2 "message".
- pkey
: Common API for all public keys.
- rsakey
: RSAKey
- server
: ServerInterface
is an interface to override
-for server support.
- sftp
- sftp_attr
- sftp_client
: Client-mode SFTP support.
- sftp_file
: SFTPFile
- sftp_handle
: Abstraction of an SFTP file handle (for server mode).
- sftp_server
: Server-mode SFTP support.
- sftp_si
: SFTPServerInterface
is an interface to
-override for SFTP server support.
- transport
: Transport
handles the core SSH2
-protocol.
- util
: Useful functions used by the rest of paramiko.
- auth_handler
: AuthHandler
- ber
- channel
: Abstraction for an SSH2 channel.
- common
: Common constants and global variables.
- compress
: Compression implementations for a Transport.
- kex_gex
: Variant on KexGroup1
where the prime "p" and
-generator "g" are provided by the server.
- kex_group1
: Standard SSH key exchange ("kex" if you wanna sound
-cool).
- logging22
: Stub out logging on python < 2.3.
- packet
: Packetizer.
- pipe
: Abstraction of a one-way pipe where the read end can be used in
-select().
- primes
: Utility functions for dealing with primes.
- ssh_exception
: Exceptions defined by paramiko.
- __builtin__.object
:
-The most base type
- paramiko.BufferedFile
:
-Reusable base class to implement python-style file buffering around a
-simpler stream.
- paramiko.SFTPFile
:
-Proxy object for a file on the remote server, in client mode SFTP.
- paramiko.ChannelFile
:
-A file-like wrapper around Channel
.
-
- paramiko.Channel
:
-A secure tunnel across an SSH Transport
.
- paramiko.server.InteractiveQuery
:
-A query (set of prompts) for a user during interactive
-authentication.
- paramiko.Message
:
-An SSH2 Message is a stream of bytes that encodes some
-combination of strings, integers, bools, and infinite-precision integers
-(known in python as longs).
- paramiko.util.PFilter
- paramiko.SecurityOptions
:
-Simple object containing the security preferences of an ssh
-transport.
- paramiko.SFTPAttributes
:
-Representation of the attributes of a file (or proxied file) for SFTP
-in client or server mode.
- paramiko.SFTPHandle
:
-Abstract object representing a handle to an open file (or folder) in
-an SFTP server implementation.
- __builtin__.type
:
-type(object) -> the object's type type(name, bases, dict) -> a
-new type
- threading._Verbose
- threading.Thread
- paramiko.SubsystemHandler
:
-Handler for a subsytem in server mode.
- paramiko.SFTPServer
:
-Server-side SFTP subsystem support.
- paramiko.Transport
:
-An SSH Transport attaches to a stream (usually a socket), negotiates
-an encrypted session, authenticates, and then creates stream tunnels,
-called Channel
s, across the session.
- paramiko.AuthHandler
:
-Internal class to handle the mechanics of authentication.
- paramiko.BaseSFTP
- paramiko.SFTPClient
:
-SFTP client object.
- paramiko.SFTP
:
-an alias for SFTPClient
for backwards compatability
- paramiko.SFTPServer
:
-Server-side SFTP subsystem support.
- paramiko.ber.BER
:
-Robey's tiny little attempt at a BER decoder.
- paramiko.logging22.Formatter
- paramiko.kex_gex.KexGex
- paramiko.kex_group1.KexGroup1
- paramiko.logging22.logger
- paramiko.primes.ModulusPack
:
-convenience object for holding the contents of the /etc/ssh/moduli
-file, on systems that have such a file.
- paramiko.Packetizer
:
-Implementation of the base SSH packet protocol.
- paramiko.PKey
:
-Base class for public keys.
- paramiko.AgentKey
:
-Private key held in a local SSH agent.
- paramiko.DSSKey
:
-Representation of a DSS key which can be used to sign an verify SSH2
-data.
- paramiko.RSAKey
:
-Representation of an RSA key which can be used to sign and verify SSH2
-data.
- paramiko.pipe.PosixPipe
- paramiko.ServerInterface
:
-This class defines an interface for controlling the behavior of
-paramiko in server mode.
- paramiko.SFTPServerInterface
:
-This class defines an interface for controlling the behavior of
-paramiko when using the SFTPServer
subsystem to provide an SFTP
-server.
- paramiko.logging22.StreamHandler
- paramiko.pipe.WindowsPipe
:
-On Windows, only an OS-level "WinSock" may be used in
-select(), but reads and writes must be to the actual socket object.
- paramiko.compress.ZlibCompressor
- paramiko.compress.ZlibDecompressor
- exceptions.Exception
:
-Common base class for all exceptions.
- paramiko.SFTPError
- paramiko.SSHException
:
-Exception raised by failures in SSH2 protocol negotiation or logic
-errors.
- paramiko.BadAuthenticationType
:
-Exception raised when an authentication type (like password) is used,
-but the server isn't allowing that type.
- paramiko.PasswordRequiredException
:
-Exception raised when a password is needed to unlock a private key
-file.
- paramiko.ssh_exception.PartialAuthentication
:
-An internal exception thrown in the case of partial
-authentication.
- paramiko.ber.BERException
- paramiko.packet.NeedRekeyException
- paramiko.Agent
:
-Client interface for using private keys from an SSH agent running on
-the local machine.
-Home | -Trees | -Index | -Help | -- |
---|
Generated by Epydoc 2.1 on Sun Dec 4 11:16:48 2005 | -http://epydoc.sf.net | -