Topic "Correct syntax with privatekey="

Author Message
[View user's profile]

Joined: 2013-06-13
Posts: 11
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""
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
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.

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License