password in log
winscp> open "sftp://logn:password@127.0.0.1:22" -hostkey="ssh-rsa 2048 ..." -timeout=15
Advertisement
winscp> open "sftp://logn:password@127.0.0.1:22" -hostkey="ssh-rsa 2048 ..." -timeout=15
Advertisement
What log is that?
session.OutputDataReceived += SessionOnOutputDataReceived; ... private void SessionOnOutputDataReceived(object sender, OutputDataReceivedEventArgs args) { Logger.Trace(args.Data); }
This is what I do right now. I just wondering if I could use some property to exclude the password from your output stream.So, it's your log file. Filter the password before writing the entry to the log.
Advertisement
sessionOptions.PrivateKeyPassphrase = "abc";
Advertisement
You can post new topics in this forum