diff options
author | Robey Pointer <robey@lag.net> | 2003-12-31 06:31:43 +0000 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2003-12-31 06:31:43 +0000 |
commit | 3a8887a42083dda796f50e1e9b32f625abcb5d5a (patch) | |
tree | b6e415c97ab629ed09309826ee7327ae49f42ab7 /demo_server.py | |
parent | daa8a2ec0d6d3706ea3864fcab5ed56597f3612a (diff) |
[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-19]
renamed auth_key -> auth_publickey; more docs.
renamed Transport.auth_key to auth_publickey for consistency. and lots more
documentation.
Diffstat (limited to 'demo_server.py')
-rwxr-xr-x | demo_server.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/demo_server.py b/demo_server.py index 65b45cf7..a80b7f9e 100755 --- a/demo_server.py +++ b/demo_server.py @@ -41,6 +41,10 @@ class ServerTransport(paramiko.Transport): return self.AUTH_SUCCESSFUL return self.AUTH_FAILED + def get_allowed_auths(self, username): + return 'password,publickey' + + class ServerChannel(paramiko.Channel): "Channel descendant that pretends to understand pty and shell requests" @@ -86,7 +90,6 @@ try: print '(Failed to load moduli -- gex will be unsupported.)' raise t.add_server_key(host_key) - t.ultra_debug = 0 t.start_server(event) while 1: event.wait(0.1) |