summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2014-09-08 17:03:15 -0700
committerJeff Forcier <jeff@bitprophet.org>2014-09-08 17:03:15 -0700
commitabd63a1334a1874ac3c85a00a9abeffb39eb049e (patch)
treed6eff7d958b74078024f1913da9cea78915ae12e /demos
parent4a950ea474a783e6de870612f963d35c73486df1 (diff)
downloadparamiko-abd63a1334a1874ac3c85a00a9abeffb39eb049e.tar.gz
Not sure why this variable was changed, but caps are Bad.
Diffstat (limited to 'demos')
-rwxr-xr-xdemos/demo_simple.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/demos/demo_simple.py b/demos/demo_simple.py
index 7f179b90..3a17988c 100755
--- a/demos/demo_simple.py
+++ b/demos/demo_simple.py
@@ -39,7 +39,7 @@ paramiko.util.log_to_file('demo_simple.log')
# Paramiko client configuration
UseGSSAPI = True # enable GSS-API / SSPI authentication
DoGSSAPIKeyExchange = True
-Port = 22
+port = 22
# get hostname
username = ''
@@ -55,7 +55,7 @@ if len(hostname) == 0:
if hostname.find(':') >= 0:
hostname, portstr = hostname.split(':')
- Port = int(portstr)
+ port = int(portstr)
# get username
@@ -75,16 +75,16 @@ try:
client.set_missing_host_key_policy(paramiko.WarningPolicy())
print('*** Connecting...')
if not UseGSSAPI or (not UseGSSAPI and not DoGSSAPIKeyExchange):
- client.connect(hostname, Port, username, password)
+ client.connect(hostname, port, username, password)
else:
# SSPI works only with the FQDN of the target host
hostname = socket.getfqdn(hostname)
try:
- client.connect(hostname, Port, username, gss_auth=UseGSSAPI,
+ client.connect(hostname, port, username, gss_auth=UseGSSAPI,
gss_kex=DoGSSAPIKeyExchange)
except Exception:
password = getpass.getpass('Password for %s@%s: ' % (username, hostname))
- client.connect(hostname, Port, username, password)
+ client.connect(hostname, port, username, password)
chan = client.invoke_shell()
print(repr(client.get_transport()))