napalm-automation / napalm-junos

Apache License 2.0
22 stars 42 forks source link

Pass password when using ssh key #223

Closed luke-orden closed 6 years ago

luke-orden commented 6 years ago

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.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.1%) to 78.2% when pulling 3d9bf7d93b261c2ad0badd6d16fc898516abedab on loverend:pass_password_ssh_key into 6dd35460b9c082f4d28b7257378f4ea87e726da0 on napalm-automation:develop.