Diff
1diff --git a/cmd/soft/migrate_config.go b/cmd/soft/migrate_config.go
2index 200d46547d14c8d3894f0eb39b1ac7808f008715..e4731ab608bb1252b9786d0a995175157bc58387 100644
3--- a/cmd/soft/migrate_config.go
4+++ b/cmd/soft/migrate_config.go
5@@ -52,6 +52,10 @@ var (
6 return fmt.Errorf("failed to copy ssh key: %w", err)
7 }
8
9+ if err := copyFile(keyPath+".pub", filepath.Join(cfg.DataPath, "ssh", filepath.Base(keyPath))+".pub"); err != nil {
10+ log.Errorf("failed to copy ssh key: %s", err)
11+ }
12+
13 cfg.SSH.KeyPath = filepath.Join("ssh", filepath.Base(keyPath))
14 }
15