From d974523d885512f51b628aa2ca7716e9434f4902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=B1=E8=88=9E=E8=80=85?= Date: Wed, 9 Jun 2021 11:32:59 +0800 Subject: [PATCH] Update ssh.go --- Plugins/ssh.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/ssh.go b/Plugins/ssh.go index 1332955..bb7cf33 100644 --- a/Plugins/ssh.go +++ b/Plugins/ssh.go @@ -43,7 +43,7 @@ func SshConn(info *common.HostInfo, user string, pass string) (flag bool, err er Host, Port, Username, Password := info.Host, info.Ports, user, pass Auth := []ssh.AuthMethod{} if info.SshKey != "" { - pemBytes, err := ioutil.ReadFile("shadow") + pemBytes, err := ioutil.ReadFile(info.SshKey) if err != nil { return false, errors.New("read key failed" + err.Error()) }