Commit Graph

611 Commits

Author SHA1 Message Date
Jeff Forcier 2e016358ef Whitespace + lang tweak 2012-09-25 18:09:35 -07:00
Jeff Forcier 30a2d14b78 Init header update 2012-09-25 18:05:01 -07:00
Jeff Forcier dd6fb2577d Bump to 0.8.x due to nontrivial changes
(cherry picked from commit d7def60c4784fed39fc8714753304a150da131c7)

Conflicts:
	setup.py
2012-09-24 19:00:19 -07:00
Jeff Forcier 3c01fdda14 Fix #28: hide interpreter-death threading exceptions
(cherry picked from commit 3709d2e02bf67ccc272e1f2311e5db125a922ba0)
2012-09-24 18:59:54 -07:00
Jeff Forcier 66118cad83 Improve unknown-server exception language
Fixes #11
(cherry picked from commit 01ab79211c3aeeb8dd55dafff3ce7b3a77844ca6)
2012-09-24 18:58:59 -07:00
Douglas Turk 681a465f32 Handle/fix handling of EINTR errors in a few places.
(cherry picked from commit 351bdb72e539c373985e108c89f61839f3acdd2a)

Conflicts:
	paramiko/agent.py
	paramiko/client.py
	paramiko/transport.py
2012-09-24 18:58:54 -07:00
Jeff Forcier 7ead8d9c70 Fix unbound local variable exception
(cherry picked from commit 503d7e62602cfe3ed63a4f44fba12874a17aa199)
2012-09-24 18:56:45 -07:00
Andrew 38dec6fc5b - make sure we honor 2-factor for all auth_pkey blocks
- explicit check for ['password'] as remaining auth type
(cherry picked from commit 53a3421da6d74333c4679fd6289d418917833b44)
2012-09-24 18:54:30 -07:00
Andrew b592eb1074 make sure to break out of key auth loop on success when doing 2-factor
(cherry picked from commit 0a4aa8a9d119022adef3b8d89f129ea26110fc1a)
2012-09-23 16:46:07 -07:00
Andrew 33176b90f7 add support for 2 factor authentication (key+password)
(cherry picked from commit be19c273bbe77d58fd67edeabf344ff253997b23)
2012-09-23 16:46:06 -07:00
Thomas Vander Stichele 01aaf70fc2 show us the offending host key
(cherry picked from commit a753df8ea43c26114942147fde2f10f82da5ca29)
2012-09-23 16:45:53 -07:00
Jan Brauer 7f526044e0 re #33 - fix typo, be more pythonic
(cherry picked from commit 803820c3c8b1aaf2a11588431582916dbb23ea1e)
2012-09-23 16:45:51 -07:00
Jan Brauer d18b8cf1e9 Fix #33 - parse config as described by manpage
(cherry picked from commit 011805eae07ee7be6140b95f6d8669763c55b3d9)
2012-09-23 16:45:49 -07:00
Jeff Forcier 01735419f3 Bump to 1.7.14
(cherry picked from commit c3a7e9d587)

Conflicts:
	setup.py
2012-09-23 16:20:01 -07:00
Jeff Forcier 077fdae801 Reorganize forwarded agent cxns to avoid errors
Fixes [Fabric #562](https://github.com/fabric/fabric/issues/562).
(cherry picked from commit 58aa52085b)
2012-09-23 16:19:42 -07:00
Jeff Forcier 1a033dc596 safe type checking (isinstance instead of type-is)
Maintainer note: added changelog entry.
(cherry picked from commit 8917d83221)
2012-09-23 16:19:40 -07:00
Olle Lundberg 6b8284640e Add support for variable expansion in SSHConfig
(cherry picked from commit 31482a46d6)
2012-09-23 16:19:31 -07:00
Olle Lundberg 697524a79f Add basic support for parameter substitution in SSHConfig.
(cherry picked from commit fb24d79695)
2012-09-23 16:19:29 -07:00
Bobby Impollonia bd5c843040 Replace hard tabs with spaces
(cherry picked from commit c07eddb9e1)
2012-09-23 16:18:56 -07:00
Jeff Forcier 11ca8134a2 Cut 1.7.13
(cherry picked from commit 998377f353)

Conflicts:
	setup.py
2012-09-23 16:11:18 -07:00
Jeff Forcier 9c5791edb8 Fixes #4, thanks again to @jaraco
(cherry picked from commit b59430efef)
2012-09-23 16:10:52 -07:00
Jeff Forcier 9b2f36fc1f Whitespace tweaks, thanks @jaraco
(cherry picked from commit 3b20efcc14)
2012-09-23 16:10:50 -07:00
Jeff Forcier 1882f3470b Move fcntl import to avoid high level ImportErrors on Windows
Fixes #5.
(cherry picked from commit ec2aedac71)
2012-09-23 16:10:42 -07:00
Jeff Forcier ac7f513ee8 Release 1.7.12
(cherry picked from commit c630917d0d)

Conflicts:
	paramiko/__init__.py
	setup.py
2012-09-23 16:09:44 -07:00
Jeff Forcier 0916fbe292 Forgot to re-add import, derp
(cherry picked from commit 474ace1ca4)
2012-09-23 16:08:39 -07:00
Jeff Forcier 3d598a64b4 Add IO sleep to agent forward communications.
Without this, use of agent forwarding causes
high CPU usage on some clients.
(cherry picked from commit 3030589aaa)

Conflicts:
	paramiko/agent.py
2012-09-23 16:08:35 -07:00
Jeff Forcier d3b48e9b44 Bump to 1.7.11
(cherry picked from commit 9234baed01)

Conflicts:
	paramiko/__init__.py
	setup.py
2012-09-23 16:07:03 -07:00
Jeff Forcier 903646677b Bump dev version
(cherry picked from commit 59cae8560b)
2012-09-23 16:03:58 -07:00
Jeff Forcier 7b7b23572b Let's not have 5 different freakin version strings
Also bumps to 1.7.10
(cherry picked from commit 01eea3326a)

Conflicts:
	README
	paramiko/__init__.py
	paramiko/transport.py
	setup.py
2012-09-23 16:03:38 -07:00
Jeff Forcier ba4dc2a26b Don't mix tabs and spaces
(cherry picked from commit 8c8d0a81ad)
2012-09-23 15:56:06 -07:00
Jeff Forcier a84bd27bfd Use new-style classes, 2001 was 10 years ago
(cherry picked from commit 85d0d97715)
2012-09-23 15:55:59 -07:00
Jeff Forcier 212276af13 Port poll-using code to use select() instead.
(cherry picked from commit eb49bf4870)
2012-09-23 15:55:46 -07:00
Ben Davis c46fddeb16 Added ssh agent support. Ported from https://github.com/robey/paramiko/pull/21
(cherry picked from commit 35a173631f)

Conflicts:
	paramiko/agent.py
2012-09-23 15:55:38 -07:00
Jeff Forcier 99859b8b02 Update version to 1.7.8, no need for 4 parts
(cherry picked from commit 5e0a329028)

Conflicts:
	README
	paramiko/__init__.py
	setup.py
2012-09-23 14:28:34 -07:00
Jeff Forcier f8239015ec Add additional Random.atfork() to prevent RNG errors in large runs
Conflicts:
	paramiko/transport.py

Was: ssh 41f4566
2012-09-23 14:21:22 -07:00
Jeff Forcier 8f9b37add4 Initial port of 3709d2e02bf67ccc272e1f2311e5db125a922ba0 from 'ssh'
Re #17
2012-09-13 19:28:07 -07:00
Jeff Forcier 322819454d Increment version for release 2012-05-16 16:03:10 -07:00
Jeff Forcier a6358f8d13 Merge #63 2012-05-16 15:51:27 -07:00
Richard Kettlewell 974294ad7d Fix issue 34 (SFTPFile prefetch assumes response order matches requests)
SFTPFile._async_response gets a new 'num' parameter giving the request
number.  This can be matched up with the return value of
SFTPClient._async_request() to retrieve data specific to that request.

The prefetch queue SFTPFile._prefetch_reads is replaced with the dict
_prefetch_extents, which maps request numbers to (offset,length)
tuples.

A lock is used to exclude the case where a response arrives in
_async_response before _prefetch_thread has updated it.
2011-08-29 15:50:35 +01:00
Robey Pointer 7bcbc24198 version 1.7.7.1 2011-05-23 13:49:47 -07:00
Robey Pointer afae8dd7c5 oops. fix potential exception when there's no ssh agent available. 2011-05-23 13:40:33 -07:00
Robey Pointer 18f6a836da version 1.7.7 2011-05-23 00:40:37 -07:00
Robey Pointer 5d9eeaedcc patch from sugarc0de to call Random.atfork() when starting up, so paramiko can be used in multiprocess code 2011-05-21 19:29:38 -07:00
Robey Pointer 22608540c3 Merge pull request #9 from tehfink/master
support for openssl keys
2011-05-21 19:12:35 -07:00
Robey Pointer e891a5e473 Merge pull request #8 from garyvdm/master
Untitled
2011-05-21 19:11:34 -07:00
Robey Pointer 4efd0e6d3c Merge pull request #7 from jelmer/master
Fix for issue 6: paramiko does not try all available address families
2011-05-21 19:02:23 -07:00
John Adams 33fd998a94 patch ssh-agent handling to not leak file descriptors 2011-02-01 02:43:17 -08:00
tehfink d3162ac75b support for openssl keys (http://www.mail-archive.com/paramiko@lag.net/msg00476.html) 2010-11-20 00:28:30 -05:00
Gary van der Merwe 044e702998 Use Crypto.Random rather than Crypto.Util.RandomPool. 2010-08-03 00:13:08 +02:00
Andrew Bennetts 213ab2c204 Try connecting to each available address family until one succeeds. 2010-05-13 12:56:39 +02:00
Robey Pointer e2add90981 fix spelling of "hierarchical" -- thanks, Thomas Guettler! 2010-04-25 17:05:06 -07:00
Robey Pointer 81c7edc1a4 patch from Shad Sharma to raise an exception if the transport isn't active when you try to open a new channel. 2010-04-25 16:42:45 -07:00
Robey Pointer 188c82eede patch from Michele Bertoldi to allow compression to be turned on in the client constructor. 2010-04-25 13:37:13 -07:00
Robey Pointer 3242df7f09 i lost who sent this to me (sorry). patches to fix AIX. 2010-04-25 13:34:54 -07:00
Robey Pointer f67cea44d0 code style and fix test. 2010-04-13 18:52:29 -07:00
Robey Pointer d268594ab1 brittspace. 2010-04-13 18:51:45 -07:00
Larry Wright b4ee844a3c added functionality to skip verifying the file, which works around sftp servers that remove the file immediately after it's been closed. 2009-12-18 17:02:55 -06:00
Robey Pointer cb913d5d32 bump to 1.7.6. 2009-11-01 22:01:04 -08:00
Robey Pointer e0a9f91c14 brittspace. 2009-11-01 21:33:13 -08:00
Robey Pointer 71e872e23a bug 426925: lookup host keys correctly when they have a different port. 2009-11-01 21:28:47 -08:00
Robey Pointer c628faa102 bug 411910: when asking for a sockaddr, ask for streams only. 2009-11-01 18:58:23 -08:00
Robey Pointer a60c69c81c bug 413850: patch from patrick mcnerthney. fix race between a server responding to an event and closing the channel. 2009-10-31 17:55:52 -07:00
Robey Pointer e80cec73b6 bug 363163: copy the SSHClient AF patch to transport.py too. 2009-10-31 16:10:59 -07:00
Robey Pointer 931f71e627 bug 411099: chdir() isn't saving the cwd in a normalized way. added test. 2009-10-31 16:06:53 -07:00
Robey Pointer f573017a1d patch from evan jones: simplify wait_for_event. 2009-07-19 20:53:00 -07:00
Robey Pointer 62bc0ad79a ignore extra fields in a hosts file, since apparently some apps are putting comments on the same line (?). 2009-07-19 20:26:44 -07:00
Robey Pointer b4220657be oops. 2009-07-19 20:17:47 -07:00
Robey Pointer 0840d8dd28 patch from sofian brabez to fix hexdump logging in sftp_client. 2009-07-19 19:59:55 -07:00
Robey Pointer e56b36648d patch from jim wilcoxson: raise an error early if chdir will fail. 2009-07-19 19:47:53 -07:00
Robey Pointer 60c6e94e7d fix my email address to be the current one. 2009-07-19 19:45:02 -07:00
Robey Pointer 0e2e882d0d make the "auth type not permitted" message debug level, for bazaar. 2009-07-19 18:49:04 -07:00
Robey Pointer e06dbde805 patch from gary poster: allow multiple hostnames to be specified per block in the ssh config file format. bug #332382 2009-07-19 16:08:13 -07:00
Robey Pointer 15f4bdb105 patch from andreux fort: add a timeout to the key exchange, so that if the remote side doesn't ever answer, eventually we give up. bug #378511 2009-07-19 16:00:39 -07:00
Robey Pointer fe35f44f2e close the local/remote files in finally blocks in sftp get & put, so fds don't get lost. bug #379240 2009-07-19 15:19:10 -07:00
Robey Pointer ac42ba88d7 patch for ARC4 cipher support, and CTR block chaining, from denis bernard. 2009-07-19 15:04:54 -07:00
Robey Pointer adb349bf2b fix tests. 2009-05-10 21:19:10 -07:00
Shikhar Bhushan 044814ba16 typo 2009-04-18 18:50:19 +02:00
Shikhar Bhushan 20e3306f3d fix ipv6 support in SSHClient 2009-04-18 18:26:12 +02:00
Robey Pointer 5e32b33be7 patch from maxime ripard adding ip6 support. 2009-04-14 18:55:25 -07:00
Robey Pointer 7bd95eb0d0 patch from james bardin: bail early if the high byte is zero. 2009-04-14 18:15:57 -07:00
Robey Pointer 74b581c170 bug 300536: allow a really long banner before the SSH handshake. 2009-02-17 18:30:48 -08:00
Robey Pointer 5def112013 fix silly exception message. 2009-02-16 01:35:22 -08:00
Robey Pointer 25417575ef make the transport a daemon thread since python 1.6 doesn't call the atexit handler correctly any more. also allow unicode as a hostname. 2009-02-16 01:24:26 -08:00
Robey Pointer 2fda984906 [project @ robey@lag.net-20080707012221-5fz3q4j2gvqlbmhl]
bump version to 1.7.4 (desmond).
2008-07-06 18:22:21 -07:00
Robey Pointer 97ea105d4e [project @ robey@lag.net-20080707002355-kl44yurqgjfhk7dd]
clarify documentation about non-blocking mode
2008-07-06 17:23:55 -07:00
Robey Pointer 035766fab0 [project @ robey@lag.net-20080707002335-9fw0bd9tj7ndcueg]
clarify feature was added in 1.7.4
2008-07-06 17:23:35 -07:00
Robey Pointer fbfd8126c8 [project @ robey@lag.net-20080706230815-v2ybqxm237zw0wa0]
add a callback method that can be used to track get/put progress in
SFTPClient. suggested by Phil Schwartz.
2008-07-06 16:08:15 -07:00
Robey Pointer e8748645a3 [project @ robey@lag.net-20080706225842-25rg9uk9ksyxxbyf]
fix convoluted logging method
2008-07-06 15:58:42 -07:00
Robey Pointer c60133d85b [project @ robey@lag.net-20080706223720-l52qact0g0q5gkuz]
ack, somehow my previous commit ERASED this file!
i'm starting to lose my bazaar-fu from using git too much. :(
2008-07-06 15:37:20 -07:00
Robey Pointer 60c46d7b7c [project @ robey@lag.net-20080706223221-k0hzhvsayzmw6w3e]
patch from Mark Hammond to use win32gui instead of win32ui, to avoid
a dependency on MFC. only affects windows.
2008-07-06 15:32:21 -07:00
Robey Pointer abf891af0b [project @ robey@lag.net-20080706221605-t6ashnnjr1aurmn4]
SFTPClient.put() now returns the stats object it collected during
verification. suggested by Jude Venn.
2008-07-06 15:16:05 -07:00
Robey Pointer c2ef48cf18 [project @ robey@lag.net-20080706203706-zqxb69qrcgyuf90n]
allow multiple key files to be specified in SSHClient.
suggested by Bernhard Walle.
2008-07-06 13:37:06 -07:00
Robey Pointer 305f5e09a5 [project @ robey@lag.net-20080604053906-vz5toqvlp5miqy1x]
merge deadlog bugfix from dwayne litzenberger.
2008-06-03 22:39:06 -07:00
Robey Pointer e47e203540 [project @ robey@lag.net-20080518231221-znq4h93fzdgotwf1]
include an empty language field on sftp responses, since some clients
expect it.
2008-05-18 16:12:21 -07:00
Robey Pointer d21d384509 [project @ robey@lag.net-20080518224525-cjid4qbn81eve3zt]
merge dwayne litzenberger's fixes for randpool on windows.
2008-05-18 15:45:25 -07:00
Robey Pointer c52b11ba17 [project @ robey@lag.net-20080324065154-w8p2lhawmsbynxc0]
bump version to 1.7.3 (clara)
2008-03-23 23:51:54 -07:00
Robey Pointer f5f203d5ea [project @ robey@lag.net-20080324065139-nmvo5goh1izbd3gr]
not all windows boxes have winrandom
2008-03-23 23:51:39 -07:00
Robey Pointer 9a6ffec93f [project @ robey@lag.net-20080323082110-o9fglwyiozn08tm9]
bug 191657:
clean up usage of the channel map by making a special object to hold the
weak value dict.
2008-03-23 01:21:10 -07:00
Robey Pointer e5a1b4bf56 [project @ robey@lag.net-20080323025751-de0lem9pi4oydt2g]
bug 193779:
catch EOFError in auth, and turn it into an auth exception. add a unit
test to verify.
2008-03-22 19:57:51 -07:00
Robey Pointer 7b819f0e91 [project @ robey@lag.net-20080323024555-s95m60jycc8dt14q]
bug 192749: document that SSHClient.connect may throw socket.error.
2008-03-22 19:45:55 -07:00
Robey Pointer 50d63690ee [project @ robey@lag.net-20080323023616-fpo17kr0qxxbgthv]
bug 200416:
don't create a new logger for every channel and every sftp client or server.
it causes python to leak lots of useless logger objects, because they never
go away. instead, log the channel # in the message, and use only a couple of
standard log nodes.
2008-03-22 19:36:16 -07:00
Robey Pointer 7854d600a7 [project @ robey@lag.net-20080323020709-ub8ya3xkh1ebywfa]
add exit_status_ready for justin cook.
2008-03-22 19:07:09 -07:00
Robey Pointer 613d2a2f24 [project @ robey@lag.net-20080322215455-xb70ktut2l1bkzsx]
patch from dwayne c. litzenberger to fix urandom support to work from
within a chroot. i modified it slightly to remove os.urandom calls
completely, since our direct file access is nearly identical to what
python was doing.
2008-03-22 14:54:55 -07:00
Robey Pointer ceb65ed55f [project @ robey@lag.net-20080220055938-c772bcrnw9lm2kcd]
for forwarded-tcpip connections, stuff the origin_addr in a public field in
the Channel, in case recipients find it useful info.
2008-02-19 21:59:38 -08:00
Robey Pointer 3319f556d6 [project @ robey@lag.net-20080219074736-1fkyp8jl95amj5ky]
add WarningPolicy to SSHClient, which logs a warning when a server host key
isn't known, but allows the connection. also added an option to avoid
searching for private keys, and made it check ~/ssh/ for windows.
2008-02-18 23:47:36 -08:00
Robey Pointer cb3a0a4c3d [project @ robey@lag.net-20080218045900-wh5168fjqq2o80kd]
merge patch from Dwayne Litzenberger that lets you ask an SSHClient not to
try agent-based auth.
2008-02-17 20:59:00 -08:00
Robey Pointer d81e0038d2 [project @ robey@lag.net-20080218024139-i2t8y0f0dd93xjo1]
bug 189466: fix typo in osrandom.py (from patch in bug report) and add a
friggin' unit test.
2008-02-17 18:41:39 -08:00
Robey Pointer 888aa8d5b7 [project @ robey@lag.net-20080124045017-dfqiamorj356btrd]
fix the utf-8 password bug for good (aka bug 177117) and add unit tests
this time.
2008-01-23 20:50:17 -08:00
Robey Pointer 4031ae9292 [project @ robey@lag.net-20080122025908-h8xm28k72umoeo7y]
bump to version 1.7.2 (basil)
2008-01-21 18:59:08 -08:00
Robey Pointer 84eebc02f6 [project @ robey@lag.net-20080121194216-q3n5ovpeyiqjua6p]
patch from dwayne litzenberger to fix the PRNG to be more resilient when
using windows, and some forking/threading environments.
2008-01-21 11:42:16 -08:00
Robey Pointer 38835bc24c [project @ robey@lag.net-20080121190842-mq94nybu8qxhw1jl]
for password authentication, only utf-8 encode the password if it's in
unicode. this should let clients work around servers that expect non-utf-8
passwords (possibly because they predate the RFCs).
2008-01-21 11:08:42 -08:00
Robey Pointer ba1fd0d61b [project @ robey@lag.net-20071231052950-8h599bnez3sgbf2e]
patch from david guerizec for direct-tcpip forwarding support, and a unit
test added by yours truly.
2007-12-30 21:29:50 -08:00
Robey Pointer 06d3471b46 [project @ robey@lag.net-20071231003441-njdbcgbrqskrgtiw]
merge patch to allow bufsize param in SSHClient.exec_command()
2007-12-30 16:34:41 -08:00
Robey Pointer d70878831c [project @ robey@lag.net-20071231003259-xwwescnkvb3e6vxc]
be more explicit about setting buffering options, and make the default
be "unbuffered", because with buffering on, writes are buffered, which can
be very confusing over ssh and usually not what you want.
2007-12-30 16:32:59 -08:00
Robey Pointer 92e92a9297 [project @ robey@lag.net-20071120052527-hloi0b30yngbay0x]
add send_ready() and a unit test.
2007-11-20 00:25:27 -05:00
Robey Pointer 2fcbacee7f [project @ robey@lag.net-20071119194455-u69od9ynz2n4x7ch]
merge tab fix
2007-11-19 11:44:55 -08:00
Robey Pointer db97851f36 [project @ robey@lag.net-20071110065222-xt335qy6c4s6flze]
patch from james bardin to allow closing an SSHClient more than once. :)
2007-11-09 22:52:22 -08:00
Robey Pointer 645bdfd861 [project @ robey@lag.net-20071110065121-76ooutayf5dvvuqh]
add get_transport() to fetch the Transport from an SSHClient.
2007-11-09 22:51:21 -08:00
Robey Pointer 9bc7c13ad7 [project @ robey@lag.net-20071110065103-a169t3ijqapq0zlo]
fix some typos.
2007-11-09 22:51:03 -08:00
Robey Pointer 758c18a28b [project @ robey@lag.net-20071029030520-ozmne7y4l6037m8h]
bug discovered while porting to jaramiko: old-style gex wasn't creating
the proper hash. fixed.
2007-10-28 20:05:20 -07:00
Robey Pointer e3d9b90ea1 [project @ robey@lag.net-20071029030344-9adfzb9ulfodtepu]
bug 157205: select() doesn't notify incoming stderr data, because stderr's
pipe isn't hooked up to the fileno() BufferedPipe. to fix, i added an "or"
pipe-event that can be triggered by either stdout or stderr, and hooked
them both up to fileno(). added a unit test for the bug and one for the
"or" pipe.
2007-10-28 20:03:44 -07:00
Robey Pointer 80b9e289ce [project @ robey@lag.net-20070924062534-5yemkpyjy2sssvjn]
bug 137219: handle EINTR in a read or write, if python doesn't.
2007-09-23 23:25:34 -07:00
Robey Pointer 2cf5448d43 [project @ robey@lag.net-20070901031348-6x0zif4cdtqu4vvu]
jon slavin points out that using the 'cmp' keyword is not compatible
with python 2.3.
2007-08-31 20:13:48 -07:00
Robey Pointer 39b45b4000 [project @ robey@lag.net-20070611044506-2c1c1t2avdr3yuaa]
bump up to 1.7.1 (amy)
2007-06-10 21:45:06 -07:00
Robey Pointer 946e4dbc29 [project @ robey@lag.net-20070521023545-8a36vex4ewgdxcwk]
merge in a modified form of a patch from alexander belchenko.  this lets
windows users use the 'win32all' module *or* the 'ctypes' module, if they
have ctypes installed.  python 2.5 comes with ctypes in the standard
library.
2007-05-20 19:35:45 -07:00
Robey Pointer 58e26ae41b [project @ robey@lag.net-20070521002334-6bx5g0zrnb10sgyd]
add optional timeout parameter to SSHClient.connect(), based on a patch
from james bardin.
2007-05-20 17:23:34 -07:00
Robey Pointer afa5e0594e [project @ robey@lag.net-20070520225704-j1czjtrl2hu7t1pj]
add a get_channel() method to SFTPClient, to retrieve the underlying channel.
2007-05-20 15:57:04 -07:00
Robey Pointer 3229cd0f94 [project @ robey@lag.net-20070520225622-ozs9cguu8ipaxt85]
patch from wesley augur: expose the 'longname' field from listdir_attr().
2007-05-20 15:56:22 -07:00
Robey Pointer 920b172360 [project @ robey@lag.net-20070326075819-y7972z9cy3ffmw76]
expose PKey for documentation, so inherited methods can be seen in DSSKey and RSAKey
2007-03-26 00:58:19 -07:00
Robey Pointer 6b71c642d1 [project @ robey@lag.net-20070218212332-ufb5mk2ne0bzamx5]
oops, fix doc typo
2007-02-18 13:23:32 -08:00
Robey Pointer cb0e01dd86 [project @ robey@lag.net-20070218212228-qdk8w1n4is0cady3]
bump version to 1.7 zubat
2007-02-18 13:22:28 -08:00
Robey Pointer 83b335e10f [project @ robey@lag.net-20070213191706-v8djxd4jiunb3his]
bump copyright year to 2007
2007-02-13 11:17:06 -08:00
Robey Pointer b9f43f3f06 [project @ robey@lag.net-20070212183021-0c9dx3w16m0x2non]
add a convenience method for open_forwarded_tcpip_channel
2007-02-12 10:30:21 -08:00
Robey Pointer ab2e5a710e [project @ robey@lag.net-20070212182955-eaqi0dhzk0p8tw02]
slightly improve docs; mention check_channel_x11_request
2007-02-12 10:29:55 -08:00
Robey Pointer 44af093090 [project @ robey@lag.net-20070211022613-tvtcqzmho5cxr55u]
fix a couple of typos discovered by mczepiel.
2007-02-10 18:26:13 -08:00
Robey Pointer f384749a8c [project @ robey@lag.net-20070210235828-2a24iw2xqe4lnf42]
patch from mpool to fix a python 2.5 warning: stat() returns floats for
times and we want to encode them as ints.
2007-02-10 15:58:28 -08:00
Robey Pointer c1e3e85353 [project @ robey@lag.net-20061227214016-ebfnh1q09zt8z3ej]
as john arbash meinel points out, this assert wasn't validating internal
consistency, because a readv() request may ask for more data than is left
in the file.  so remove the assert.
2006-12-27 16:40:16 -05:00
Robey Pointer 0a63d74a69 [project @ robey@lag.net-20061227194104-ztyb6hi94wp9egp2]
fix bug in prefetch confirmation
2006-12-27 14:41:04 -05:00
Robey Pointer db89be96ef [project @ robey@lag.net-20061226012748-lmbxlsue9q2jzk8x]
if connecting to the agent fails, assume it's just not there, and don't
raise an exception.  (suggestion from martin pool on bazaar-dev.)
2006-12-25 20:27:48 -05:00
Robey Pointer bc66f5eed2 [project @ robey@lag.net-20061226012631-dlhl2akelqy8z0v8]
remove silly comment about compression not being tested
2006-12-25 20:26:31 -05:00
Robey Pointer 5a30821a7d [project @ robey@lag.net-20061217011840-wndj9dyd2f9g512e]
don't need to expanduser twice
2006-12-16 17:18:40 -08:00
Robey Pointer 029b8989db [project @ robey@lag.net-20061215222108-7pu0151970w1e1lp]
add a ResourceManager to replace __del__ methods, and use it in SSHClient
to automatically close any open transport when the SSHClient is collected.
this won't work on Transport itself (to close the attached packetizer)
because Transport starts up its own thread, and the threading library
keeps a Transport object alive to run that thread.  i think that's okay;
the SSHClient interface is meant to be the easier one, so that's the one
where it's important that some auto-cleanup is attempted.
2006-12-15 14:21:08 -08:00
Robey Pointer 7058f5ead2 [project @ robey@lag.net-20061215211936-rgc3uzy5ai9h6qho]
bug 75370: notice garbage sftp packets
since sftp packets shouldn't be larger than about 32k, if the first length
byte is non-zero (ie, the packet size > 16M), raise an exception.
2006-12-15 13:19:36 -08:00
Robey Pointer 76285309cf [project @ robey@lag.net-20061203023334-72zo500ys0l1le30]
potential port forwarding support; probably buggly cuz i haven't added unit tests yet :)
2006-12-02 18:33:34 -08:00
Robey Pointer aaa97d72c0 [project @ robey@lag.net-20061127192023-ns5lhww0jc84f21t]
absorb socket.errors caused by a closed socket if we knew it was closed
2006-11-27 11:20:23 -08:00
Robey Pointer fec76c51b1 [project @ robey@lag.net-20061121001117-8mf8zzltvfvzzrv7]
add support for opening x11 channels, and a unit test
2006-11-20 16:11:17 -08:00
Robey Pointer 48bb10694b [project @ robey@lag.net-20061120192137-1rcpiiq9mcd58m76]
reorder the closing of the pipe in Channel.close() to make sure it happens even when the channel is closed by the remote host first
2006-11-20 11:21:37 -08:00
Robey Pointer b956cc4831 [project @ robey@lag.net-20061119205558-p5p2tmqx0xt7hq9r]
bump version to 1.6.4 (yanma) and trim the README changes-history a bit
2006-11-19 12:55:58 -08:00
Robey Pointer a9c51b23ce [project @ robey@lag.net-20061113041742-e24468a63d31b8bd]
sometimes the sftp module is used with raw sockets, not just paramiko
Channels.  in this case, calling recv() will never return.  so notice
this and use select() to give python a chance to notice a closed socket.
this kind of thing is especially useful for unit tests.
2006-11-12 20:17:42 -08:00
Robey Pointer 48afc3082a [project @ robey@lag.net-20061112063054-bf71926ff8c98c68]
a bit of cleanup in close() to try harder to avoid having lingering threads
2006-11-11 22:30:54 -08:00
Robey Pointer e2d8357622 [project @ robey@lag.net-20061112055617-098a150cf051bffa]
try a trick that should let 'hostkeys[hostname][keytype] = key' work for
HostKeys objects again.
2006-11-11 21:56:17 -08:00
Robey Pointer e736341e20 [project @ robey@lag.net-20061111004413-7bab08f1bad7f96f]
bug 70398:
allow constructions like:
    hostkeys['hostname'] = {}
to create an empty host entry object, so that future attempts to set
keys will at least not throw an exception.  (they'll still silently do
nothing, though.)
2006-11-10 16:44:13 -08:00
Robey Pointer 482d0bcef2 [project @ robey@lag.net-20061031223747-9fda3f2c1112c5dc]
(bug 69222)
on some recent linux kernels, a socket can return "readable" from select,
but a subsequent read() will return EAGAIN.  this is against the contract
of select(), so python's socketmodule doesn't catch it or handle it.
therefore, we need to.  EAGAIN should now be treated the same as a
socket timeout.
2006-10-31 14:37:47 -08:00
Robey Pointer 4628a53acf [project @ robey@lag.net-20061031190617-1113fb493ff5b690]
(bug 69330)
in SFTPClient._auth, check for the existence of the rsa/dsa keys before
trying to open them, so that an I/O exception doesn't mask an earlier
one.
2006-10-31 11:06:17 -08:00
Robey Pointer 7e27adacf1 [project @ robey@lag.net-20061015015628-371a037b5165d634]
bump version to 1.6.3
2006-10-14 18:56:28 -07:00
Robey Pointer 4d090c71a6 [project @ robey@lag.net-20061008002032-d6803b57bac4f62c]
i think the compression needs to be inside this lock in order to preserve order
2006-10-07 17:20:32 -07:00
Robey Pointer 93ab477408 [project @ robey@lag.net-20061001034525-8f78a989ecde720c]
bug fix from mike looijmans: notify any thread waiting in accept() when the transport dies
2006-09-30 20:45:25 -07:00
Robey Pointer 64b89b6efd [project @ robey@lag.net-20061001034455-bf6880fdbd4dd29e]
trivial doc fixes
2006-09-30 20:44:55 -07:00
Robey Pointer 31c26eafb9 [project @ robey@lag.net-20060911175604-bf2798fcebd62780]
trap EOF errors when reading a response, and translate into SSHException
2006-09-11 10:56:04 -07:00
Robey Pointer 4acb9589ce [project @ robey@lag.net-20060908023959-de70f0675f25fa64]
fixes from mike barber for chdir and sftp attr __str__
2006-09-07 19:39:59 -07:00
Robey Pointer 682185bac1 [project @ robey@lag.net-20060908015516-1b8ac2af031586fe]
better way to change the module name
2006-09-07 18:55:16 -07:00
Robey Pointer df20443b29 [project @ robey@lag.net-20060901205930-021bcc34e3d5d8c8]
sadly, revert the append optimization -- it breaks for openssh
2006-09-01 13:59:30 -07:00
Robey Pointer 1f4a3f1976 [project @ robey@lag.net-20060829181836-1cd17df7729c4db8]
remove usage of has_key, which is dangerous and deprecated
2006-08-29 11:18:36 -07:00
Robey Pointer b23079b135 [project @ robey@lag.net-20060829012231-328fee7de77036be]
fix a couple of pcheck warnings
2006-08-28 18:22:31 -07:00
Robey Pointer 2b8738d3ce [project @ robey@lag.net-20060828234834-51542dc36057b361]
fix __setitem__ to do the right thing
2006-08-28 16:48:34 -07:00
Robey Pointer c2b38a1fb8 [project @ robey@lag.net-20060823025610-adee7f6d9bd92725]
ok, ok, switch back to open()
2006-08-22 19:56:10 -07:00
Robey Pointer 145ceab54c [project @ robey@lag.net-20060823025538-3f8a4d761d7d4118]
when a file is open for append, don't stat to get the file position unless the user asks for it explicitly
2006-08-22 19:55:38 -07:00
Robey Pointer cc3e383baf [project @ robey@lag.net-20060822025601-aab3b723b95d3a9c]
add 'flags' param to SFTPHandle and make the default impl avoid calling tell() when in append mode; add proper append-mode support to stub_sftp
2006-08-21 19:56:01 -07:00
Robey Pointer 49418d1145 [project @ robey@lag.net-20060816213132-2e094c077d22dc50]
bump version to 1.6.2
2006-08-16 14:31:32 -07:00
Robey Pointer bfe8fac5bf [project @ robey@lag.net-20060816213106-99cffe9de5d555c5]
don't need odict anymore
2006-08-16 14:31:06 -07:00
Robey Pointer 929ce8df7a [project @ robey@lag.net-20060813195045-ca4148e233794d4b]
add a unit test to verify that all the paramiko symbols are exported correctly
2006-08-13 12:50:45 -07:00
Robey Pointer 6d37b6b810 [project @ robey@lag.net-20060813193546-c92b58af1c27d156]
missing commas in exported class list (bug 55946)
2006-08-13 12:35:46 -07:00
Robey Pointer 4bedcfbf39 [project @ robey@lag.net-20060801182715-f0977a00fbcce456]
fix logic in checking prefetch buffers: don't stop looking for prefetched data just because all the buffers have arrived
2006-08-01 11:27:15 -07:00
Robey Pointer 05de66db6d [project @ robey@lag.net-20060801182357-e030af9570314145]
use hexlify instead of home-grown hexify
2006-08-01 11:23:57 -07:00
Robey Pointer 4086a5cd35 [project @ robey@lag.net-20060729182801-e5e501844712bd85]
oops, forgot to import SSHException
2006-07-29 11:28:01 -07:00
Robey Pointer 6821b6e8e8 [project @ robey@lag.net-20060727025519-bffe5bcc0556d779]
variant of a patch from warren young to preserve the order of host entries from the 'known_hosts' file and preserve knowlege of which lines had multiple hostnames on them
2006-07-26 19:55:19 -07:00
Robey Pointer 17a93bce4c [project @ robey@lag.net-20060726191515-6ff627b4d7216073]
if a chunk has been requested in prefetch, don't bother doing an overlapping prefetch during readv
2006-07-26 12:15:15 -07:00
Robey Pointer c731a077fb [project @ robey@lag.net-20060726002947-e60cb0a3d7b86919]
don't fetch readv chunks that we have reason to believe are already in prefetch buffers.  no longer need to order the prefetch requests either.
2006-07-25 17:29:47 -07:00
Robey Pointer c24db3e38c [project @ robey@lag.net-20060726000907-b9a2d46eecc64cec]
allow prefetch + readv to occur at the same time (even though it will be really inefficient).  instead of a moving pointer, use the prefetched buffers as an indication of what we've downloaded so far.  break up large readv requests into the max packet size.  add 2 more unit tests to test this stuff.
2006-07-25 17:09:07 -07:00
Robey Pointer 787b0b461d [project @ robey@lag.net-20060723235649-5f757e44908ffb31]
attempt to implement support for kex-gex 'old' packet type, which is apparently used by putty (this would only affect paramiko in server mode)
2006-07-23 16:56:49 -07:00
Robey Pointer 4737e44e40 [project @ robey@lag.net-20060723235548-2f5f9ae591d683ca]
clean up use of expected_packet and make it accept a tuple of packet types
2006-07-23 16:55:48 -07:00
Robey Pointer ffcc22e784 [project @ robey@lag.net-20060713194617-35597c20a6b3bc59]
bump version to 1.6 (oops, forgot to check this in a few days ago)
2006-07-13 12:46:17 -07:00
Robey Pointer ec6e76abc6 [project @ robey@lag.net-20060710070003-b9c4a1a7f7ab0ae9]
apparently some sftp servers may return an mtime of 0xffffffff -- just in case, ignore that value
2006-07-10 00:00:03 -07:00
Robey Pointer 9c8a06b877 [project @ robey@lag.net-20060628050022-2f0d754ed70356f1]
anal-retentive conversion to 'while True'
2006-06-27 22:00:22 -07:00
Robey Pointer c22df44900 [project @ robey@lag.net-20060628045919-ffac82c51c51b3df]
make HostKeys use odict to ensure order is preserved, and add HostKeys.save()
2006-06-27 21:59:19 -07:00
Robey Pointer 4fa4fdee4b [project @ robey@lag.net-20060627064106-71a2bfb5a39a2913]
add PKey.from_private_key to read from a file object
2006-06-26 23:41:06 -07:00
Robey Pointer d81758f1ff [project @ robey@lag.net-20060627060810-93a5453df5ae4a62]
log mkdir mode when given
2006-06-26 23:08:10 -07:00
Robey Pointer be86d5474a [project @ robey@lag.net-20060627060703-3d7eadfb1f5042ad]
catch and discard exceptions thrown when sending a status response during an exception
2006-06-26 23:07:03 -07:00
Robey Pointer 79d239693a [project @ robey@lag.net-20060627060600-07d5b7e2fc57202d]
add PKey.write_private_key to write a private key into a file object, and add tests for it
2006-06-26 23:06:00 -07:00
Robey Pointer 1726162508 [project @ robey@lag.net-20060530070000-358e08e75c891d8b]
add __setitem__ for HostKeys
2006-05-30 00:00:00 -07:00
Robey Pointer e0f0ae5eb2 [project @ robey@lag.net-20060530065945-158cc1305bfc2c82]
missed the client id
2006-05-29 23:59:45 -07:00
Robey Pointer 471876ff3e [project @ robey@lag.net-20060530065858-6300e2d76304778c]
convert an EOFError into SSHException during sftp negotation
2006-05-29 23:58:58 -07:00
Robey Pointer af4b8fedc9 [project @ robey@lag.net-20060511013313-411d1524da3b53f0]
bump version to 1.6, fix up docs a little bit
2006-05-10 18:33:13 -07:00
Robey Pointer 6f4110a066 [project @ robey@lag.net-20060511011140-ab3550c28121f900]
fix a few bugs found by pycheck
2006-05-10 18:11:40 -07:00
Robey Pointer 8843feb633 [project @ robey@lag.net-20060509164549-14e664f234b4b747]
new parent exception for all auth failures, and new specific exception for bad host key
2006-05-09 09:45:49 -07:00
Robey Pointer 02e8178510 [project @ robey@lag.net-20060508005224-a8a04cd59f9fa016]
pulled out openssh config parsing into its own class
2006-05-07 17:52:24 -07:00
Robey Pointer 1d2bd214c3 [project @ robey@lag.net-20060508002214-0403d95f73b152f5]
couple of doc fixes
2006-05-07 17:22:14 -07:00
Robey Pointer 2a03425e27 [project @ robey@lag.net-20060508002007-3b7b87c361fe876a]
add unit tests for SSHClient, and fix a few bugs that uncovered
2006-05-07 17:20:07 -07:00
Robey Pointer de1e072c73 [project @ robey@lag.net-20060507230153-dba6b2d664b5ef3f]
channel operations raise an exception on error now instead of returning a bool
2006-05-07 16:01:53 -07:00
Robey Pointer 581103665b [project @ robey@lag.net-20060504025237-a015ee747d9a2e75]
if open_channel fails, it now raises ChannelException.  added a unit test for that too.  renegotiate_keys will also raise an exception now instead of returning a bool.
2006-05-03 19:52:37 -07:00