ssh: load more host key formats than rsa

This commit is contained in:
Mikaël Cluseau
2023-12-17 15:33:56 +01:00
parent d69f2f27ee
commit 650c913930
2 changed files with 20 additions and 8 deletions

View File

@ -133,6 +133,7 @@ func setUserPass(user, passwordHash string) {
p := strings.Split(line, ":")
if len(p) < 2 || p[0] != user {
buf.WriteString(line)
buf.WriteByte('\n')
continue
}