rgzr / sshtun

Go package to create SSH tunnels
MIT License
89 stars 13 forks source link

Use privateKey with passphrase #4

Closed SwenChan closed 5 years ago

SwenChan commented 5 years ago

My server use private key with passphrase, and I found that you miss this case....

bpx279 commented 5 years ago

+1

rgzr commented 5 years ago

Hi! I addressed this case in https://github.com/rgzr/sshtun/commit/a519f41c835102d22ae14166bb9d29ca28ce7e9a.

Now there's a method SetEncryptedKeyFile for this where you pass key file and passphrase.