Skip to content

Commit

Permalink
feat: defined valid HostKeyAlgorithms for ssh auth
Browse files Browse the repository at this point in the history
  • Loading branch information
florian.metzger-noel committed May 2, 2024
1 parent bdb35e1 commit 81a0eb4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plumbing/transport/ssh/auth_method.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ func (a *Password) ClientConfig() (*ssh.ClientConfig, error) {
return a.SetHostKeyCallback(&ssh.ClientConfig{
User: a.User,
Auth: []ssh.AuthMethod{ssh.Password(a.Password)},
HostKeyAlgorithms: []string{
ssh.KeyAlgoRSASHA256,
ssh.KeyAlgoRSASHA512,
},
})
}

Expand Down

0 comments on commit 81a0eb4

Please sign in to comment.