From 11815d4d837314a51ebf919c1a61cb0f68a3c02b Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Mon, 10 Nov 2003 08:49:50 +0000 Subject: [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-9] rename secsh -> paramiko also, rename SecshException back to SSHException. sigh. :) --- demo.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'demo.py') 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: -- cgit v1.2.3