Commit 2bfe426
authored
Fix hardcoded public key auth negotiation (#294)
Authentication using RSA public keys was incorrectly hardcoded to use
`ssh-rsa`, i.e., SHA1. This led to public keys set up to use
`rsa-sha2-256` or `rsa-sha2-512` falling back to `ssh-rsa` and being
rejected by modern SSH servers that are configured not to support SHA1
by default.
The solution derives the hash name from the public key instead of
hardcoding it.1 parent 461d62a commit 2bfe426
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | 141 | | |
143 | 142 | | |
144 | 143 | | |
145 | 144 | | |
146 | 145 | | |
147 | | - | |
| 146 | + | |
148 | 147 | | |
149 | 148 | | |
150 | 149 | | |
| |||
0 commit comments