Skip to content

Commit

Permalink
Add support for password based authorization with paramiko
Browse files Browse the repository at this point in the history
 - testinfra.get_host(F"paramiko://{user}:{password}@{address}:{port}") does now work
  • Loading branch information
mwelcker authored and philpep committed Nov 8, 2020
1 parent 031daba commit a6eebf5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions testinfra/backend/paramiko.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def client(self):
"port": int(self.host.port) if self.host.port else 22,
"username": self.host.user,
"timeout": self.timeout,
"password": self.host.password,
}
if self.ssh_config:
with open(self.ssh_config) as f:
Expand Down

0 comments on commit a6eebf5

Please sign in to comment.