crosbymichael / slex

SSH multiplex
MIT License
559 stars 50 forks source link

Prevent initializing ssh.ClientConfig multiple times #11

Closed mrkschan closed 7 years ago

mrkschan commented 7 years ago

This patch initiailzes ssh.ClientConfig once only and provides all available ssh.AuthMethod to it. That says, if both SSH private key and SSH agent is available, they will all be used in the SSH authentication process.

crosbymichael commented 7 years ago

LGTM

Thanks for the PRs @mrkschan