Commit Graph

583 Commits

Author SHA1 Message Date
Jeff Forcier 308c5f57d9 Add ProxyCommand classes to top level API 2012-11-05 23:09:52 -08:00
Jeff Forcier fd392d6b20 One more patch from @clarete's work 2012-11-05 17:47:33 -08:00
Jeff Forcier 191a5fc08c Implement (& test for) ProxyCommand interpolation.
Forgot this earlier.
2012-11-05 17:44:25 -08:00
Jeff Forcier 0981c25cd8 Formatting 2012-11-05 17:35:06 -08:00
Jeff Forcier 0a276ac34b Bubble up ProxyCommandFailure in packetizer 2012-11-05 17:31:17 -08:00
Jeff Forcier 394ab2699e Post-import edits 2012-11-05 17:29:32 -08:00
Jeff Forcier 5d15467ad4 Import BadProxyCommand 2012-11-05 17:29:23 -08:00
Jeff Forcier 27271fa455 Post-import edits 2012-11-05 17:26:47 -08:00
Jeff Forcier 7cd2f2715b Initial port of ProxyCommand class from @clarete 2012-11-05 17:25:03 -08:00
Jeff Forcier 270bb94a46 Fix ProxyCommand equals splitting.
Uses regex approach from @lndbrg
2012-11-05 17:18:48 -08:00
Jeff Forcier f9b7ce902f Tweak docstring re #77 2012-11-05 13:30:56 -08:00
Steven Noonan 31ea4f0734 SSHClient: add 'sock' parameter to connect() for tunneling
Re #77

This parameter, if set, can be used to make Paramiko wrap an existing socket
connected to a remote SSH server. For instance, you could set up another
SSHClient directly connected to a "gateway" host, and then create a direct-tcpip
tunnel to a "target" host directly accessible from the gateway's perspective
(e.g. think of trying to establish an SSH connection to hosts behind a NAT).
The gateway host would then establish a TCP connection to the target host
directly, and a channel is exposed on the client side. This channel could be
wrapped by an SSHClient class using the connect() function, avoiding the need
to establish a new TCP connnection.

This effectively allows you to create tunneled SSH connections.

Based on work by Oskari Saarenmaa <os@ohmu.fi>, in Paramiko pull request #39.

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
2012-11-05 13:30:48 -08:00
Jason R. Coombs 45aa88b530 Remove dependency on pywin32. Just use ctypes for simplicity. 2012-11-01 10:09:41 -04:00
Jason R. Coombs e0d71b5efb Remove test for presence of ctypes (assumed present in global imports). 2012-11-01 10:03:46 -04:00
Tomer Filiba 668870aa83 Forgot to import errno 2012-10-26 15:46:28 +03:00
Tomer Filiba 23f3099b6f Make send() and recv() fail when channel is closed
``sendall()`` was checking if the channel has been closed, 
and failed accordingly, but ``send()`` and ``recv()`` did not.
This meant that ``chan.send("foo")`` when the channel was already
closed, just blocked forever.
2012-10-26 15:44:34 +03:00
James Hiscock c78a5856e8 Update paramiko/file.py
Added a closed property as an alternative accessor to BufferedFile's _closed property.
2012-10-17 14:25:22 +12:00
Olle Lundberg 04cc4d5510 Be more pythonic. 2012-10-16 16:54:44 +02:00
Olle Lundberg 7ce9875ed7 Implement support for parsing proxycommand. 2012-10-16 16:38:38 +02:00
Olle Lundberg b22c11ab1b Pep8 fixes 2012-10-16 15:00:08 +02:00
Olle Lundberg 2dd74f953d Spelling 2012-10-16 14:52:27 +02:00
Olle Lundberg ad587fa0ef Add host negation support to paramiko config.
This is a rewrite of the SSHConfig class to
conform with the rules specified by the
manpage for ssh_config.
This change also adds support for negation
according to the rules introduced by
OpenSSH 5.9. Reference:
http://www.openssh.com/txt/release-5.9
2012-10-16 13:57:05 +02:00
Jeff Forcier 1341e28882 Move SFTPClient.get() termination condition to loop end.
Ensures callback always executes even for zero-len files.

Fixes #90
2012-10-14 21:46:50 -07:00
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
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