def _testKey(remotehost, remotefolder, privatekey): props = {'remotehost': remotehost, 'remotedirectory': remotefolder, 'privatekey': privatekey} thisfile = os.path.abspath(__file__) securesend = SecureSender(properties=props, files=[thisfile]) securesend.send() securesend.delete()
def _testPassword(remotehost, remotefolder, username, password): props = {'remotehost': remotehost, 'remotedirectory': remotefolder, 'username': username, 'password': password} thisfile = os.path.abspath(__file__) securesend = SecureSender(properties=props, files=[thisfile]) securesend.send() securesend.delete()
def _testKey(remotehost, remotefolder, privatekey): props = { 'remotehost': remotehost, 'remotedirectory': remotefolder, 'privatekey': privatekey } thisfile = os.path.abspath(__file__) securesend = SecureSender(properties=props, files=[thisfile]) securesend.send() securesend.delete()
def _testPassword(remotehost, remotefolder, username, password): props = { 'remotehost': remotehost, 'remotedirectory': remotefolder, 'username': username, 'password': password } thisfile = os.path.abspath(__file__) securesend = SecureSender(properties=props, files=[thisfile]) securesend.send() securesend.delete()