go-junos icon indicating copy to clipboard operation
go-junos copied to clipboard

using SSH keys

Open devinodaniel opened this issue 8 years ago • 10 comments

would love to have ability to use SSH keys to authenticate instead of password

devinodaniel avatar Jun 29 '17 22:06 devinodaniel

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.

scottdware avatar Jun 30 '17 12:06 scottdware

:) 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.

devinodaniel avatar Jul 03 '17 16:07 devinodaniel

That sounds great!

scottdware avatar Jul 05 '17 12:07 scottdware

This feature would be quite useful.

zachfi avatar Mar 13 '18 03:03 zachfi

Stay tuned! I'll be issuing a commit soon which adds this feature. Just need to finish up some testing.

scottdware avatar Mar 13 '18 14:03 scottdware

Ok, just committed the changes and updated the README, which describes how to connect. Let me know if you run into any issues!

scottdware avatar Mar 13 '18 15:03 scottdware

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.

zachfi avatar Mar 16 '18 16:03 zachfi

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.

zachfi avatar Mar 25 '18 01:03 zachfi

I'll take a look at that today. I don't think I used a passphrase as well during my initial testing.

scottdware avatar Mar 26 '18 12:03 scottdware

On a Windows machine, I was able to connect with a passphrase-enabled key. I'll try on another OS as well.

scottdware avatar Mar 26 '18 16:03 scottdware