summaryrefslogtreecommitdiffhomepage
path: root/demo.py
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2003-11-10 08:49:50 +0000
committerRobey Pointer <robey@lag.net>2003-11-10 08:49:50 +0000
commit11815d4d837314a51ebf919c1a61cb0f68a3c02b (patch)
treea87cdf5a7f3658375d0d6be642a5d8ddf46bbc36 /demo.py
parent2ff9f467517e1ff8916e1adbdaf342d0468b4ebb (diff)
[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-9]
rename secsh -> paramiko also, rename SecshException back to SSHException. sigh. :)
Diffstat (limited to 'demo.py')
-rwxr-xr-xdemo.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/demo.py b/demo.py
index 50ae3f92..e34ad425 100755
--- a/demo.py
+++ b/demo.py
@@ -1,7 +1,7 @@
#!/usr/bin/python
import sys, os, socket, threading, getpass, logging, time, base64, select, termios, tty, traceback
-import secsh
+import paramiko
##### utility functions
@@ -31,7 +31,7 @@ def load_host_keys():
##### main demo
# setup logging
-l = logging.getLogger("secsh")
+l = logging.getLogger("paramiko")
l.setLevel(logging.DEBUG)
if len(l.handlers) == 0:
f = open('demo.log', 'w')
@@ -65,7 +65,7 @@ except Exception, e:
try:
event = threading.Event()
- t = secsh.Transport(sock)
+ t = paramiko.Transport(sock)
t.ultra_debug = 0
t.start_client(event)
# print repr(t)
@@ -103,7 +103,7 @@ try:
auth = default_auth
if auth == 'r':
- key = secsh.RSAKey()
+ key = paramiko.RSAKey()
default_path = os.environ['HOME'] + '/.ssh/id_rsa'
path = raw_input('RSA key [%s]: ' % default_path)
if len(path) == 0:
@@ -111,7 +111,7 @@ try:
key.read_private_key_file(path)
t.auth_key(username, key, event)
elif auth == 'd':
- key = secsh.DSSKey()
+ key = paramiko.DSSKey()
default_path = os.environ['HOME'] + '/.ssh/id_dsa'
path = raw_input('DSS key [%s]: ' % default_path)
if len(path) == 0: