Versions in this module Expand all Collapse all v1 v1.16.3 Nov 9, 2022 Changes in this version + func EncodePrivateKey(private *rsa.PrivateKey) []byte + func EncodePublicKey(public *rsa.PublicKey) ([]byte, error) + func EncodeSSHKey(public *rsa.PublicKey) ([]byte, error) + func GenerateKey(bits int) (*rsa.PrivateKey, *rsa.PublicKey, error) + func MakePrivateKeySignerFromBytes(buffer []byte) (ssh.Signer, error) + func MakePrivateKeySignerFromFile(key string) (ssh.Signer, error) + func ParsePublicKeyFromFile(keyFile string) (*rsa.PublicKey, error) + func RunSSHCommand(cmd, user, host string, signer ssh.Signer) (string, string, int, error) + type SSHTunnelList struct + func NewSSHTunnelList(user, keyfile string, healthCheckURL *url.URL, stopChan chan struct{}) *SSHTunnelList + func (l *SSHTunnelList) Dial(ctx context.Context, net, addr string) (net.Conn, error) + func (l *SSHTunnelList) Update(addrs []string)