I had the same problem, and itThis seems to be related to the version of SSHOpenSSH you're running.
If I type
where ssh
I get...:
C:\Windows\System32\OpenSSH\ssh.exe
C:\Program Files\Git\usr\bin\ssh.exe
where ssh
returns:%WinDir%\System32\OpenSSH\ssh.exe %ProgramFiles%\Git\usr\bin\ssh.exe
ssh -V
returns:# %WinDir%\System32\OpenSSH\ssh.exe OpenSSH_7.5p1, without OpenSSL # %ProgramFiles%\Git\usr\bin\ssh.exe OpenSSH_7.3p1, OpenSSL 1.0.2k 26 Jan 2017
When I run ssh -V
in both locations, I get
OpenSSH_7.5p1, without OpenSSL
OpenSSH_7.3p1, OpenSSL 1.0.2k 26 Jan 2017
...respectively
So, when I runrunning ssh..\Git\usr\bin\ssh.exe
from the git/bin directory, it works fine and doesn't complain about the permissions, but running the same command line, using the former installation of SSH, it..\OpenSSH\ssh.exe
comes back with this.
Load key "t:\\mykeys\\rich-private.ppk": invalid format
[email protected]: Permission denied (publickey).
ps. the permissions on the filefollowing, even though key ACLs are just full accessFull Access for myself, and nothing else.:
load key "t:\mykeys\rich-private.ppk": invalid format
[email protected]: Permission denied (publickey).