go-junos
go-junos copied to clipboard
using SSH keys
would love to have ability to use SSH keys to authenticate instead of password
Funny you should bring that up, I was just thinking about that last night and how I want to incorporate that sooner rather than later.
:) If I get some time this week or next, I can try to take a stab at implementation unless you think you might get there sooner.
That sounds great!
This feature would be quite useful.
Stay tuned! I'll be issuing a commit soon which adds this feature. Just need to finish up some testing.
Ok, just committed the changes and updated the README, which describes how to connect. Let me know if you run into any issues!
Oh great! That looks pretty similar to the code I was working up a few days ago to send. Thanks for taking a look @scottdware. I'll be able to test in the next few days.
This worked for me, though I had to generate a passphrase-less key. The passphrase handling didn't seem to work and I didn't dig in.
I'll take a look at that today. I don't think I used a passphrase as well during my initial testing.
On a Windows machine, I was able to connect with a passphrase-enabled key. I'll try on another OS as well.