Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

zikowski

Re: What about specifying only a set of ciphers or exclude a set of ciphers?

Tried the session template and it worked like a charm.

Thanks a ton Martin
Regards
zikowski

What about specifying only a set of ciphers or exclude a set of ciphers?

Hello Martin,

I have a PowerShell script that uses WinSCP for file movements from an SFTP. But now they SFTP only supports a certain ciphers. I can configure it in the GUI but how can we set it in PowerShell?

ChatGPT says $preferredCiphers would work but it doesn't. Any way to achieve this?
martin

Re: Make WinSCP Use a Specific Encryption Algorithm

I'd prefer not to modify the PuTTY code too much. So I hope they implement this on their side.
TheCliGuy

Re: Make WinSCP Use a Specific Encryption Algorithm

Hello Martin,

Thanks for providing the link to Cipher selection UI is messy and irrational on the PuTTY wishlist.

I think the author of that wish expressed the problem very well. It's unfortunate that no action has been taken since it was logged in 2007...

I really like the WinSCP .Net library and would very much like to use it in the project that I'm currently working on but in order to comply with my customer's security policy I have to ensure that a minimum encryption algorithm of AES 256 is used. So unfortunately I will have to find an alternative library that can meet my needs.

Is there any possibility that in the future you might be able to enhance the the PuTTY code that WinSCP depends on so it is possible to select specific algorithms?
TheCliGuy

Make WinSCP Use a Specific Encryption Algorithm

I'm working on a project where files are to be uploaded to various third party SFTP servers that are not under my control.

The security team that I'm working with have specified that I must use an encryption algorithm of either aes256-ctr or aes256-gcm when connecting to an SFTP server. If an SFTP server doesn't support aes256-ctr or aes256-gcm then the connection must fail.

WinSCP does not support aes256-gcm but it does support aes256-ctr. Is there a way of specifying that aes256-ctr must be used?

If WinSCP does not currently support this, is it a feature that could be added in the future?