Commit Graph

470 Commits

Author SHA1 Message Date
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