rgzr / sshtun

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

Add authentication using reader-based keys #7

Closed RaMin0 closed 4 years ago

RaMin0 commented 4 years ago

This adds the ability to supply keys using io.Readers instead of file paths. This serves the case when keys are not available as files.

myKey := strings.NewReader("private key")
tun.SetKeyReader(myKey)
rgzr commented 4 years ago

Very useful! Thank you!