Post a reply

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


Re: Correct syntax with privatekey=

This is the correct syntax:

open "sftp://username@" -privatekey="D:\SFTP\Prod\ServerKey\private.ppk"

Though you actually need no quotes in this case, as there's no space in either argument.

Correct syntax with privatekey=

I have a private key file that is not working by command line. After typing below, I get asked for a password. There is no password, just username and key. What is wrong ?

open "sftp://username@ -privatekey=""D:\SFTP\Prod\ServerKey\private.ppk""