Merge branch 'master' of github.com:bitprophet/ssh
This commit is contained in:
commit
39abb7d6e9
4
LICENSE
4
LICENSE
|
@ -2,7 +2,7 @@
|
||||||
Version 2.1, February 1999
|
Version 2.1, February 1999
|
||||||
|
|
||||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
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
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
of this license document, but changing it is not allowed.
|
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
|
You should have received a copy of the GNU Lesser General Public
|
||||||
License along with this library; if not, write to the Free Software
|
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.
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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
|
import base64
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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
|
import base64
|
||||||
from binascii import hexlify
|
from binascii import hexlify
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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!)
|
# based on code provided by raymond mosteller (thanks!)
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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
|
import base64
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Sample script showing how to do local port forwarding over ssh.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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
|
import socket
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Sample script showing how to do remote port forwarding over ssh.
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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 = '''
|
longdesc = '''
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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
|
# Note: Despite the copyright notice, this was submitted by John
|
||||||
# Arbash Meinel. Thanks John!
|
# Arbash Meinel. Thanks John!
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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'}
|
I{'ssh'}
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
SSH Agent interface for Unix clients.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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}
|
L{AuthHandler}
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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
|
import util
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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
|
Attempt to generalize the "feeder" part of a Channel: an object which can be
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Abstraction for an SSH2 channel.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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}.
|
L{SSHClient}.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Common constants and global variables.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Compression implementations for a Transport.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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}.
|
L{SSHConfig}.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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}
|
L{DSSKey}
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
BufferedFile.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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}
|
L{HostKeys}
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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
|
Variant on L{KexGroup1 <ssh.kex_group1.KexGroup1>} where the prime "p" and
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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
|
Standard SSH key exchange ("kex" if you wanna sound cool). Diffie-Hellman of
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Stub out logging on python < 2.3.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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".
|
Implementation of an SSH2 "message".
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Packetizer.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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().
|
Abstraction of a one-way pipe where the read end can be used in select().
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Common API for all public keys.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Utility functions for dealing with primes.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Resource manager.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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}
|
L{RSAKey}
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
L{ServerInterface} is an interface to override for server support.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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 select
|
||||||
import socket
|
import socket
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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 stat
|
||||||
import time
|
import time
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Client-mode SFTP support.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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}
|
L{SFTPFile}
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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).
|
Abstraction of an SFTP file handle (for server mode).
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Server-mode SFTP support.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
L{SFTPServerInterface} is an interface to override for SFTP server support.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Exceptions defined by ssh.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
L{Transport} handles the core SSH2 protocol.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Useful functions used by the rest of ssh.
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Functions for communicating with Pageant, the basic windows ssh agent program.
|
||||||
|
|
2
test.py
2
test.py
|
@ -16,7 +16,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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!
|
do the unit tests!
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
A stub SFTP server for loopback SFTP testing.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Some unit tests for authenticating over a Transport.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Some unit tests for BufferedPipe.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Some unit tests for SSHClient.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Some unit tests for the BufferedFile abstraction.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Some unit tests for HostKeys.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Some unit tests for the key exchange protocols.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Some unit tests for ssh protocol message blocks.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Some unit tests for the ssh2 protocol in Transport.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Some unit tests for public/private key objects.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
some unit tests to make sure sftp works.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
some unit tests to make sure sftp works well with large files.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Some unit tests for the ssh2 protocol in Transport.
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# 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.,
|
# 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.
|
Some unit tests for utility functions.
|
||||||
|
|
Loading…
Reference in New Issue