Skip to content

Commit 607334d

Browse files
committed
Send the path of the private key instead of the private key
1 parent ba4761c commit 607334d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

upload/upload.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ func ssh(port string, files []string, commandline string, auth Auth, l Logger, S
386386
var client *simplessh.Client
387387
var err error
388388
if auth.PrivateKey != "" {
389-
client, err = simplessh.ConnectWithKey(port+":"+strconv.Itoa(auth.Port), auth.Username, auth.PrivateKey)
389+
client, err = simplessh.ConnectWithKeyFile(port+":"+strconv.Itoa(auth.Port), auth.Username, auth.PrivateKey)
390390
} else {
391391
client, err = simplessh.ConnectWithPassword(port+":"+strconv.Itoa(auth.Port), auth.Username, auth.Password)
392392
}

0 commit comments

Comments
 (0)