From 2ff9f467517e1ff8916e1adbdaf342d0468b4ebb Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Mon, 10 Nov 2003 06:52:35 +0000 Subject: [PATCH] [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-8] doc changes --- README | 21 +++++++++++++++++++-- demo_server.py | 6 +++++- secsh.py | 2 +- 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/README b/README index d861ff2..0f33fe9 100644 --- a/README +++ b/README @@ -1,5 +1,5 @@ secsh 0.1 -"bulbasaur" release, 18 sep 2003 +"charmander" release, 10 nov 2003 (c) 2003 Robey Pointer @@ -54,7 +54,7 @@ know these screwy steps. i just don't understand windows enough.]) *** DEMO -the demo app (demo.py) is a raw implementation of the normal 'ssh' CLI tool. +the demo client (demo.py) is a raw implementation of the normal 'ssh' CLI tool. while the secsh library should work on all platforms, the demo app will only run on posix, because it uses select. @@ -69,6 +69,10 @@ the demo app leaves a logfile called "demo.log" so you can see what secsh logs as it works. but the most interesting part is probably the code itself, which hopefully demonstrates how you can use the secsh library. +there's also now a demo server (demo_server.py) which listens on port 2200 +and accepts a login (robey/foo) and pretends to be a BBS, just to demonstrate +how to perform the server side of things. + *** USE @@ -122,6 +126,8 @@ must call "close()" on the Transport to kill this thread. on many platforms, the python interpreter will refuse to exit cleanly if any of these threads are still running (and you'll have to kill -9 from another shell window). +[fixme: add info about server mode] + *** CHANGELOG @@ -155,6 +161,15 @@ are still running (and you'll have to kill -9 from another shell window). method "start_client(event)" to get things rolling * re-keying now takes place after 1GB of data or 1 billion packets (these limits can be easily changed per-session if needed) +2003-11-06: + * added a demo server and host key +2003-11-09: + * lots of changes to server mode + * ChannelFile supports universal newline mode; fixed readline + * fixed a bug with parsing the remote banner +2003-11-10: version "charmander" + * renamed SSHException -> SecshException + * cleaned up server mode and the demo server *** MISSING LINKS @@ -164,3 +179,5 @@ are still running (and you'll have to kill -9 from another shell window). * multi-part auth not supported (ie, need username AND pk) * should have a simple synchronous method that handles all auth & events, by pre-seeding the password or key info, and the expected key +* server mode needs better doc + diff --git a/demo_server.py b/demo_server.py index a4cf01c..273bb79 100755 --- a/demo_server.py +++ b/demo_server.py @@ -73,7 +73,11 @@ try: sys.exit(1) # print repr(t) - chan = t.accept() + # wait for auth + chan = t.accept(10) + if chan is None: + print '*** No channel.' + sys.exit(1) chan.event.wait(10) if not chan.event.isSet(): print '*** Client never asked for a shell.' diff --git a/secsh.py b/secsh.py index 526a966..29342e8 100644 --- a/secsh.py +++ b/secsh.py @@ -16,7 +16,7 @@ from dsskey import DSSKey __author__ = "Robey Pointer " -__date__ = "9 Nov 2003" +__date__ = "10 Nov 2003" __version__ = "0.1-charmander" __credits__ = "Huzzah!"