summaryrefslogtreecommitdiffhomepage
path: root/forward.py
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2004-11-01 07:07:48 +0000
committerRobey Pointer <robey@lag.net>2004-11-01 07:07:48 +0000
commit1d1a60047c1c7b09dd49c0444c2ea88183be3872 (patch)
tree2074e1cf8f8117beda1966bd4c1abb372f76566a /forward.py
parent6eb59a2b533fa61566ff01865a784b6c720db51b (diff)
[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-99]
use getpass convert raw_input to getpass as suggested many weeks ago.
Diffstat (limited to 'forward.py')
-rwxr-xr-xforward.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/forward.py b/forward.py
index 0f5eacfc..798d9d55 100755
--- a/forward.py
+++ b/forward.py
@@ -176,7 +176,7 @@ if options.use_key:
if not READPASS:
print '*** Password needed for keyfile (use -P): %s' % options.keyfile
sys.exit(1)
- key_password = raw_input()
+ key_password = getpass.getpass('Enter password for key: ')
try:
key = paramiko.RSAKey.from_private_key_file(options.keyfile, key_password)
except:
@@ -190,7 +190,7 @@ if key is None:
if not READPASS:
print '*** Either a valid private key or password is required (use -K or -P).'
sys.exit(1)
- password = raw_input()
+ password = getpass.getpass('Enter password: ')
verbose('Connecting to ssh host %s:%d ...' % (options.ssh_host, options.ssh_port))