From 6e76848104bc04ddc93dc6c4175f855e03d8ea35 Mon Sep 17 00:00:00 2001 From: Jonas Kaninda Date: Wed, 23 Oct 2024 09:39:30 +0200 Subject: [PATCH] fix: add identifyFile --- pkg/restore.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkg/restore.go b/pkg/restore.go index fb4378d..0fa87ee 100644 --- a/pkg/restore.go +++ b/pkg/restore.go @@ -88,12 +88,13 @@ func restoreFromRemote(db *dbConfig, conf *RestoreConfig) { } sshStorage, err := ssh.NewStorage(ssh.Config{ - Host: sshConfig.hostName, - Port: sshConfig.port, - User: sshConfig.user, - Password: sshConfig.password, - RemotePath: conf.remotePath, - LocalPath: tmpPath, + Host: sshConfig.hostName, + Port: sshConfig.port, + User: sshConfig.user, + Password: sshConfig.password, + IdentifyFile: sshConfig.identifyFile, + RemotePath: conf.remotePath, + LocalPath: tmpPath, }) if err != nil { utils.Fatal("Error creating SSH storage: %s", err)