ssh-keyscan returns with an exit status of '0' when DNS resolution of a domain fails or an SSH connection can't be made. In instances where scripting is involved, this leads to situations where there is no indication that the command completed successfully. Authors are then forced to capture and parse the output in order to test for a successful run. DNS Resolution: > ssh-keyscan shouldnotresolve.example > echo $? 0 No SSH Service: > ssh-keyscan example.com > echo $? 0
Created attachment 3229 [details] exit with status 1 if no keys found
This has been committed and will be in openssh-8.0
Close bugs fixed in openssh-8.1 release cycle
[spam removed]