Topic "Correct syntax with privatekey="

Author Message
jsb2210
[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@10.10.10.10/ -privatekey=""D:\SFTP\Prod\ServerKey\private.ppk""
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
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.
Advertisements

You can post new topics in this forum

Search

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License