summaryrefslogtreecommitdiffhomepage
path: root/demo_server.py
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2003-12-31 06:31:43 +0000
committerRobey Pointer <robey@lag.net>2003-12-31 06:31:43 +0000
commit3a8887a42083dda796f50e1e9b32f625abcb5d5a (patch)
treeb6e415c97ab629ed09309826ee7327ae49f42ab7 /demo_server.py
parentdaa8a2ec0d6d3706ea3864fcab5ed56597f3612a (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-xdemo_server.py5
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)