Created attachment 1861 [details] fatal() with a useful message if fopen() fails ssh-keygen -L (and -l) will report misleading error messages if the fopen() of the specified file fails. This may cause ssh-keygen to complain about the format of the file when the real issue is a lack of read permissions, etc. The attached patch reports a more accurate error message when fopen() fails in these cases.
Created attachment 1864 [details] /home/djm/keygen-load-errors.diff standardise format of a few more keyfile opens
patch applied - this will be released in OpenSSH-5.6. Thanks!
Move resolved bugs to CLOSED after 5.7 release