SSH command line behavior with explicit identity file

Damien Miller djm at mindrot.org
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 127.0.0.1
Warning: Identity file /root/xxx not accessible: Permission denied.




More information about the openssh-unix-dev mailing list