Merge branch 'master' of github.com:bitprophet/ssh

This commit is contained in:
Jeff Forcier 2012-02-25 10:55:11 -08:00
commit 39abb7d6e9
61 changed files with 62 additions and 62 deletions

View File

@ -2,7 +2,7 @@
Version 2.1, February 1999
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@ -485,7 +485,7 @@ convey the exclusion of warranty; and each file should have at least the
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
Also add information on how to contact you by electronic and paper mail.

View File

@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
import base64

View File

@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
import base64
from binascii import hexlify

View File

@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
# based on code provided by raymond mosteller (thanks!)

View File

@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
import base64

View File

@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Sample script showing how to do local port forwarding over ssh.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
import socket

View File

@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Sample script showing how to do remote port forwarding over ssh.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
longdesc = '''

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
# Note: Despite the copyright notice, this was submitted by John
# Arbash Meinel. Thanks John!

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
I{'ssh'}

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
SSH Agent interface for Unix clients.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
L{AuthHandler}

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
import util

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Attempt to generalize the "feeder" part of a Channel: an object which can be

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Abstraction for an SSH2 channel.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
L{SSHClient}.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Common constants and global variables.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Compression implementations for a Transport.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
L{SSHConfig}.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
L{DSSKey}

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
BufferedFile.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
L{HostKeys}

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Variant on L{KexGroup1 <ssh.kex_group1.KexGroup1>} where the prime "p" and

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Standard SSH key exchange ("kex" if you wanna sound cool). Diffie-Hellman of

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Stub out logging on python < 2.3.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Implementation of an SSH2 "message".

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Packetizer.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Abstraction of a one-way pipe where the read end can be used in select().

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Common API for all public keys.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Utility functions for dealing with primes.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Resource manager.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
L{RSAKey}

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
L{ServerInterface} is an interface to override for server support.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
import select
import socket

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
import stat
import time

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Client-mode SFTP support.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
L{SFTPFile}

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Abstraction of an SFTP file handle (for server mode).

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Server-mode SFTP support.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
L{SFTPServerInterface} is an interface to override for SFTP server support.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Exceptions defined by ssh.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
L{Transport} handles the core SSH2 protocol.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Useful functions used by the rest of ssh.

View File

@ -15,7 +15,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Functions for communicating with Pageant, the basic windows ssh agent program.

View File

@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
do the unit tests!

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
...

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
A stub SFTP server for loopback SFTP testing.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Some unit tests for authenticating over a Transport.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Some unit tests for BufferedPipe.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Some unit tests for SSHClient.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Some unit tests for the BufferedFile abstraction.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Some unit tests for HostKeys.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Some unit tests for the key exchange protocols.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Some unit tests for ssh protocol message blocks.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Some unit tests for the ssh2 protocol in Transport.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Some unit tests for public/private key objects.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
some unit tests to make sure sftp works.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
some unit tests to make sure sftp works well with large files.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Some unit tests for the ssh2 protocol in Transport.

View File

@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with 'ssh'; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA.
"""
Some unit tests for utility functions.