Commit b3f07dfb authored by Eric's avatar Eric

rename func name

No related merge requests found
......@@ -30,7 +30,7 @@ func init() {
func StartServer() {
serverSig := getPrivatekey(SSHKeyPath)
serverSig := getPrivateKey(SSHKeyPath)
ser := ssh.Server{
Addr: "0.0.0.0:" + strconv.Itoa(SSHPort),
PasswordHandler: authService.SSHPassword,
......
......@@ -6,7 +6,7 @@ import (
gossh "golang.org/x/crypto/ssh"
)
func getPrivatekey(keyPath string) gossh.Signer {
func getPrivateKey(keyPath string) gossh.Signer {
privateBytes, err := ioutil.ReadFile(keyPath)
if err != nil {
log.Fatal("Failed to load private key: ", err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment