Commandline incl. PrivateKey and its Password

Advertisement

!BRNDMG
Joined:
Posts:
3
Location:
Germany

Commandline incl. PrivateKey and its Password

Hello communinty,
hello devs,

I'm trying around to open WinSCP via commandline by using a private key file. The following example works flawlessy, except that the password is always prompted:

winscp.exe scp://USERNAME:PASSWORD@somehost.eu:22/var/log/ /privatekey=D:\PuTTY\KEYFILE.ppk -passphrase PASSWORD /rawsettings LocalDirectory=%USERPROFILE%\Downloads

First I thought of escaping special chars in the password, but also a simple test with "Test123" as password doesn't do it.

Any help is appreciated :)

Thanks and have a nice day!

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum