It will now:
https://winscp.net/tracker/1488
https://winscp.net/tracker/1488
sessionOptions.PrivateKeyPassphrase = "abc";
So, it's your log file. Filter the password before writing the entry to the log.
What log is that?
session.OutputDataReceived += SessionOnOutputDataReceived;
...
private void SessionOnOutputDataReceived(object sender, OutputDataReceivedEventArgs args)
{
Logger.Trace(args.Data);
}
winscp> open "sftp://logn:password@127.0.0.1:22" -hostkey="ssh-rsa 2048 ..." -timeout=15