summaryrefslogtreecommitdiffhomepage
path: root/demo_server.py
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2004-11-06 20:32:08 +0000
committerRobey Pointer <robey@lag.net>2004-11-06 20:32:08 +0000
commite86c5f0106cb83ae423f6ef7dfc04e51b62c8439 (patch)
tree60667fe074ee700c77741fa3861070ac1537a8b4 /demo_server.py
parent1d1a60047c1c7b09dd49c0444c2ea88183be3872 (diff)
[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-100]
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.
Diffstat (limited to 'demo_server.py')
-rwxr-xr-xdemo_server.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/demo_server.py b/demo_server.py
index 2f08f590..84d2f5b1 100755
--- a/demo_server.py
+++ b/demo_server.py
@@ -6,11 +6,8 @@ import paramiko
# setup logging
paramiko.util.log_to_file('demo_server.log')
-#host_key = paramiko.RSAKey()
-#host_key.read_private_key_file('demo_rsa_key')
-
-host_key = paramiko.DSSKey()
-host_key.read_private_key_file('demo_dss_key')
+#host_key = paramiko.RSAKey(filename='tests/test_rsa.key')
+host_key = paramiko.DSSKey(filename='tests/test_dss.key')
print 'Read key: ' + paramiko.util.hexify(host_key.get_fingerprint())