NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform.
You will still be able to view content, but posting and replying will be temporarily disabled.
To learn more, please review the information in this blog post.

Microsoft Virtualization Discussions

Invoke-NaSsh -PrivateKeyFile - Invalide Private Key File

mschloss
6,471 Views

Hi all,

I try to get KeyAuthentication with Invoke-NaSsh to work. I get following error Message:

Invoke-NaSsh : Invalid private key file.

When I use plink.exe with this key I´m trying everything work fine.

In which format the ppk FIle is expected?

Can anyone send me out a valid public / private Key Pair, that I can check what is missing in my file.

TIA

Michael

1 ACCEPTED SOLUTION

beam
6,471 Views

The private key file should be in the OpenSSH format.  If you are using PuTTYgen to create the .ppk, go to Conversions -> Export OpenSSH key to export the private key in the correct format.

-Steven

View solution in original post

2 REPLIES 2

beam
6,472 Views

The private key file should be in the OpenSSH format.  If you are using PuTTYgen to create the .ppk, go to Conversions -> Export OpenSSH key to export the private key in the correct format.

-Steven

mschloss
6,471 Views

Thanks - that was the trick, how to create the key with putty in a windows environment.

-Michael

Public