SSH command line behavior with explicit identity file

Damien Miller djm at
Wed Apr 30 23:36:35 EST 2014

On Wed, 30 Apr 2014, Yves Martin wrote:

> In my opinion, I would expect that ssh command outputs to stderr the "could
> not open key file '/path/to/my/id_dsa': Permission denied" message when a
> identity file is explicitly given in options.

You neglected to mention which OpenSSH version you are using.

Recent versions do warn:

[djm at haru ~]$ ssh -i /root/xxx
Warning: Identity file /root/xxx not accessible: Permission denied.

More information about the openssh-unix-dev mailing list