SFTP

Frends.SFTP.WriteFile / 3.1.0

Summary

Creates a file on an SFTP server directly from content held in the Process, with no local file involved.

Typical use — small generated files such as trigger or manifest files

Details

Frends version
5.5 and newer
Agent
Crossplatform
Target framework
net6.0
3.1.02026-10-21
Changed
  • An empty or unknown encoding name now gives a clear error message ("Unknown encoding: '...'") instead of the default .NET message.
3.0.02026-01-27
Changed
Breaking
  • Updated dependency SSH.NET to the newest version 2025.1.0.
  • Drop DSS support
2.6.02026-01-13
Fixed
  • Operation timeout is now using the Connection.ConnectionTimeout parameter.
2.5.02025-10-15
Added
  • Added new Options class with CreateDestinationDirectories property to enable automatic target directory creation
2.4.02025-01-13
Fixed
  • Fixed issue with ConnectionInfoBuilder having static properties for connection and input parameters which lead to Task not being thread safe.
2.3.02024-08-19
Updated
  • Updated Renci.SshNet library to version 2024.1.0.
2.2.02024-01-03
Updated
  • Breaking Updated dependency SSH.NET to the newest version 2023.0.0.
Changed
  • Changed connection info builder to create the connection info as it's done in DownloadFiles.
  • Breaking Changed PrivateKeyFilePassphrase parameter to PrivateKeyPassphrase and enabled it when PrivateKeyString was used.
2.0.12022-12-01
Updated
  • Updated dependency Microsoft.Extensions.DependencyInjection to the newest version.
2.0.02022-11-10
Changed
  • Breaking Added parameters for keyboard-interactive authentication and add new line when appending.
  • Fixed overwrite deleting the original file before writing the new file.
  • Added keyboard-interactive authentication method.
  • Added more tests e.g. Serverfingerprint tests
  • Added System.Text.CodePages NuGet to the project
  • Added ConnectionInfoBuilder
  • Added HostKeyAlgorithm enum
1.0.12022-06-14
Changed
  • Changed the main method to write from stream to a file.
  • Updated tests
  • Updated Renci.SshNet library
1.0.02022-03-10
Added
  • Initial implementation
An unhandled error has occurred. Reload 🗙