Skip to content
This repository was archived by the owner on Feb 10, 2018. It is now read-only.

Commit

Permalink
Pass password when using ssh key
Browse files Browse the repository at this point in the history
Currently it is not possible to use a ssh key with a passphrase.

`paramiko` defines `password` as follows:

```
password (str) – a password to use for authentication or for unlocking a
private key
```

This change passes the password when using a private key allowing the
use of a passphrase protected private key.
  • Loading branch information
luke-orden committed Oct 23, 2017
1 parent 6dd3546 commit 3d9bf7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions napalm_junos/junos.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def __init__(self, hostname, username, password, timeout=60, optional_args=None)
if self.key_file:
self.device = Device(hostname,
user=username,
password=password,
ssh_private_key_file=self.key_file,
ssh_config=self.ssh_config_file,
port=self.port)
Expand Down

0 comments on commit 3d9bf7d

Please sign in to comment.