You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pkg/sshutil: Use hostKeyCorrector().checker() instead of ssh.InsecureIgnoreHostKey()
- `hostKeyCorrector().checker()`:
checker returns a HostKeyCallback that either checks and corrects the host key,
or only checks the host key, depending on whether any host keys have been corrected.
It is expected to pass host key checks by retrying after the first correction.
On second invocation, it will only check the host key.
The code that uses `ssh.InsecureIgnoreHostKey()` in `x/crypto/ssh` is pointed out in CodeQL as `Use of insecure HostKeyCallback implementation (High)`, so it is an implementation to avoid this.
Signed-off-by: Norio Nomura <[email protected]>
0 commit comments