Transparent SSH jump host with auditing.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
236 B

package stronghold
import (
"io/ioutil"
"golang.org/x/crypto/ssh"
)
func loadPrivateKeyFile(name string) (ssh.Signer, error) {
b, err := ioutil.ReadFile(name)
if err != nil {
return nil, err
}
return ssh.ParsePrivateKey(b)
}