Post a reply

Options
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)

Options

Topic review

martin

Re: Correct syntax with privatekey=

This is the correct syntax:

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

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

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@10.10.10.10/ -privatekey=""D:\SFTP\Prod\ServerKey\private.ppk""