Re: Correct syntax with privatekey=
This is the correct syntax:
Though you actually need no quotes in this case, as there's no space in either argument.
open "sftp://[email protected]/" -privatekey="D:\SFTP\Prod\ServerKey\private.ppk"
Though you actually need no quotes in this case, as there's no space in either argument.