diff --git a/wavesrv/pkg/remote/sshclient.go b/wavesrv/pkg/remote/sshclient.go index ee56aba16..f235accde 100644 --- a/wavesrv/pkg/remote/sshclient.go +++ b/wavesrv/pkg/remote/sshclient.go @@ -292,7 +292,7 @@ func writeToKnownHosts(knownHostsFile string, newLine string, getUserVerificatio return UserInputCancelError{Err: fmt.Errorf("canceled by the user")} } - _, err = f.WriteString(newLine) + _, err = f.WriteString(newLine + "\n") if err != nil { f.Close() return err