summaryrefslogtreecommitdiffhomepage
path: root/demo_simple.py
AgeCommit message (Collapse)Author
2005-09-21[project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-57]Robey Pointer
simplify a line of debug output in demo_simple that bothered me one day
2005-08-17[project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-55]Robey Pointer
fix the loading of known_hosts in the demos to work on winodws/cygwin
2005-04-18[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-162]Robey Pointer
avoid os.environ['HOME'] in the demos avoid using os.environ['HOME'], which will never work on windows, and use os.path.expanduser() instead. it's semi-moot because windows doesn't have a standard location for ssh files, but i think paramiko should set a good example anyway.
2005-02-28[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-154]Robey Pointer
even better 1.2 lapras re-bump the version # to 1.2 (with a new date since i added more stuff). add 2005 to the copyright date in a bunch of files.
2004-11-06[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-100]Robey Pointer
don't forget demo_windows.py update MANIFEST.in to include demo_windows.py and not include the demo keys (they're in tests/ now). clean up the README to explain the demo scripts better now, since there are so many of them. then fix up the demo scripts to look in tests/ for the keys. demo_windows.py doesn't need to call get_pty() (in fact, i think that's blowing openssh's mind) and was executing the wrong command.
2004-10-18[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-93]Robey Pointer
switch Transport.connect() to using a Pkey object for the host key i suddenly realized that passing "hostkeytype" and "hostkey" as strings to Transport.connect() was pretty silly since i went to all the effort of making a class specifically for holding keys. so Transport.connect() now just takes host-key argument: "hostkey" as a PKey object. updated the demos to use PKey objects when reading the host key file, and to use the new "hostkey" argument.
2004-04-06[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-42]Robey Pointer
support py22, more or less add roger binns' patches for supporting python 2.2. i hedged a bit on the logging stuff and just added some trickery to let logging be stubbed out for python 2.2. this changed a lot of import statements but i managed to avoid hacking at any of the existing logging. socket timeouts are required for the threads to notice when they've been deactivated. worked around it by using the 'select' module on py22. also fixed the sftp unit tests to cope with a password-protected private key.
2004-04-05[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-40]Robey Pointer
add dss key generation too, and fix some bugs added the ability to generate dss keys and write private dss key files, similar to rsa. in the process, fixed a couple of bugs with ber encoding and writing password-encrypted key files. the key has to be padded to the iblock size of the cipher -- it's very difficult to determine how the others do this, so i just add random bytes to the end. fixed the simple demo to use Transport's (host, port) constructor for simplicity, and fixed a bug where the standard demo's DSS login wouldn't work. also, move the common logfile setup crap into util so all the demos can just call that one.
2003-12-30[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-17]Robey Pointer
lots more documentation, and added Transport.connect() renamed demo_host_key to demo_rsa_key. moved changelog to a separate file, and indicated that future changelog entries should be fetched from tla. tried to clean up "__all__" in a way that makes epydoc still work. added lots more documentation, and renamed many methods and vars to hide them as private non-exported API. Transport's ModulusPack is now a static member, so it only has to be loaded once, and can then be used by any future Transport object. added Transport.connect(), which tries to wrap all the SSH2 negotiation and authentication into one method. you should be able to create a Transport, call connect(), and then create channels.