diff options
Diffstat (limited to 'demos/demo_sftp.py')
-rwxr-xr-x[-rw-r--r--] | demos/demo_sftp.py | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/demos/demo_sftp.py b/demos/demo_sftp.py index dbcb2cb7..8b20bdad 100644..100755 --- a/demos/demo_sftp.py +++ b/demos/demo_sftp.py @@ -20,7 +20,10 @@ # based on code provided by raymond mosteller (thanks!) -import base64 +""" +Demonstrates basic SFTP transfer across a connection. +""" + import getpass import os import socket @@ -28,15 +31,16 @@ import sys import traceback import paramiko -from paramiko.py3compat import input - - # setup logging paramiko.util.log_to_file("demo_sftp.log") # Paramiko client configuration -UseGSSAPI = True # enable GSS-API / SSPI authentication -DoGSSAPIKeyExchange = True +UseGSSAPI = ( + paramiko.GSS_AUTH_AVAILABLE +) # enable "gssapi-with-mic" authentication, if supported by your python installation +DoGSSAPIKeyExchange = ( + paramiko.GSS_AUTH_AVAILABLE +) # enable "gssapi-kex" key exchange, if supported by your python installation Port = 22 # get hostname |