Skip to content

Commit a6eebf5

Browse files
mwelckerphilpep
authored andcommitted
Add support for password based authorization with paramiko
- testinfra.get_host(F"paramiko://{user}:{password}@{address}:{port}") does now work
1 parent 031daba commit a6eebf5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

testinfra/backend/paramiko.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def client(self):
7474
"port": int(self.host.port) if self.host.port else 22,
7575
"username": self.host.user,
7676
"timeout": self.timeout,
77+
"password": self.host.password,
7778
}
7879
if self.ssh_config:
7980
with open(self.ssh_config) as f:

0 commit comments

Comments
 (0)