| Summary: | ssh-keyscan can't find hostname in 8.9 while finds in 8.8 (keygen or keyscan issue) when port is used | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Arkadiusz Miśkiewicz <arekm> | ||||
| Component: | ssh-keygen | Assignee: | Assigned to nobody <unassigned-bugs> | ||||
| Status: | CLOSED INVALID | ||||||
| Severity: | normal | CC: | djm | ||||
| Priority: | P5 | ||||||
| Version: | 8.9p1 | ||||||
| Hardware: | amd64 | ||||||
| OS: | Linux | ||||||
| Attachments: |
|
||||||
|
Description
Arkadiusz Miśkiewicz
2022-03-17 05:13:17 AEDT
Could you run ssh-keyscan with the debugging verbosity turned up and attach the output for a failed 8.9 session? Adding -vvv to the arguments will do this Created attachment 3584 [details]
ssh-keyscan -vv -p24 -H localhost
"ssh-keyscan -vv -p24 -H localhost" log
Ah, it's probably the fix for bug #3367 https://github.com/openssh/openssh-portable/commit/e9c71498a08 Before 8.9, ssh-keyscan would not include the port in the hash as ssh does. If you use a non-default port now, then it is included in the hash just as if it was added by "ssh -p24 localhost" [djm@neko openssh]$ ./ssh-keyscan -Hp 2222 localhost > /tmp/x # localhost:2222 SSH-2.0-OpenSSH_8.9 [djm@neko openssh]$ ssh-keygen -f /tmp/x -F localhost [djm@neko openssh]$ ssh-keygen -lf /tmp/x -F "[localhost]:2222" # Host [localhost]:2222 found: line 1 [localhost]:2222 RSA SHA256:llyZXQpeXErA3hDjef4lD5vVgsKOLEas0tKMrNSheNw So not a bug and 'localhost:24' is not supported ([] is mandatory). Indeed, works with []:port. closing bug resolved during openssh-9.0 release cycle |