def sshSetCredentials(self, username='ixload', password='ixia123', sshPasswordFile=None, port=22, pkeyFile=None): """ For scpFiles and deleteFolder. Parameters username: The username to log into the IxLoad Gateway server. password: The password. The Linux default password is ixia123. sshPasswordFile: The file that contains the password. port: The SSH port to use. pkeyFile: The PKEY file to use """ self.sshUsername = username self.sshPassword = password self.sshPort = port self.sshPkeyFile = pkeyFile if sshPasswordFile: # with open (sshPasswordFile, 'r') as pwdFile: # self.sshPassword = pwdFile.read().strip() self.sshPassword = self.readFile(sshPasswordFile)