diff options
author | Robey Pointer <robey@lag.net> | 2003-11-10 06:52:35 +0000 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2003-11-10 06:52:35 +0000 |
commit | 2ff9f467517e1ff8916e1adbdaf342d0468b4ebb (patch) | |
tree | 0d702f414a697b72f49292cd1c1de7ee99639b72 | |
parent | aad7b859f194451a0529c4d8aa20cdc724ae33a2 (diff) |
[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-8]
doc changes
-rw-r--r-- | README | 21 | ||||
-rwxr-xr-x | demo_server.py | 6 | ||||
-rw-r--r-- | secsh.py | 2 |
3 files changed, 25 insertions, 4 deletions
@@ -1,5 +1,5 @@ secsh 0.1 -"bulbasaur" release, 18 sep 2003 +"charmander" release, 10 nov 2003 (c) 2003 Robey Pointer <robey@lag.net> @@ -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 a4cf01c8..273bb793 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.' @@ -16,7 +16,7 @@ from dsskey import DSSKey __author__ = "Robey Pointer <robey@lag.net>" -__date__ = "9 Nov 2003" +__date__ = "10 Nov 2003" __version__ = "0.1-charmander" __credits__ = "Huzzah!" |