<PackageReference Include="SSH.NET" Version="2013.4.7" />

SftpFileStream

public class SftpFileStream : Stream
Exposes a System.IO.Stream around a remote SFTP file, supporting both synchronous and asynchronous read and write operations.
public virtual byte[] Handle { get; }

Gets the operating system file handle for the file that the current SftpFileStream object encapsulates.

public virtual bool IsAsync { get; }

Gets a value indicating whether the FileStream was opened asynchronously or synchronously.

public string Name { get; }

Gets the name of the FileStream that was passed to the constructor.

public TimeSpan Timeout { get; set; }

Gets or sets the operation timeout.