Skip to content
Snippets Groups Projects
Commit 2ccdb635 authored by Mads M. Pedersen's avatar Mads M. Pedersen
Browse files

removed password from interactive gateway

parent 479ef127
No related branches found
No related tags found
1 merge request!22Ssh client with gateway and interactive auth2
......@@ -140,7 +140,7 @@ class TestSSHClient(unittest.TestCase):
return [self.password]
return [getpass.getpass(prompt_list[0][0])]
return []
gateway = SSHClient('ssh.risoe.dk', 'mmpe', x.mmpe, interactive_auth_handler = sshrisoe_interactive_auth_handler(x.mmpe))
gateway = SSHClient('ssh.risoe.dk', 'mmpe', interactive_auth_handler = sshrisoe_interactive_auth_handler(x.mmpe))
ssh = SSHClient('gorm.risoe.dk', 'mmpe', x.mmpe, gateway = gateway)
_,out,_ = ssh.execute("hostname")
self.assertEqual(out.strip(), "g-000.risoe.dk")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment