Renci.SshNet.Async
Extends Renci.SshNet to implement the task-based async pattern
Install / Use
/learn @JohnTheGr8/Renci.SshNet.AsyncREADME
Renci.SshNet.Async

About
A collection of extensions for SSH.NET that implement the Task-based Asynchronous Pattern from the originally implemented Asynchronous Programming Model
Install
You can install Renci.SshNet.Async from Nuget:
PM> Install-Package Renci.SshNet.Async
Usage
The code sample below demonstrates how the extension methods are used.
// initialize client and connect like you normally would
var client = new SftpClient("host", "username", "password");
client.Connect();
// await a directory listing
var listing = await client.ListDirectoryAsync(".");
// await a file upload
using (var localStream = File.OpenRead("path_to_local_file"))
{
await client.UploadAsync(localStream, "upload_path");
}
// disconnect like you normally would
client.Disconnect();
Supported Operations
Not all operations expose async methods in the base library. The extension methods introduced by this library are listed below:
SftpClient.ListDirectoryAsyncSftpClient.DownloadAsyncSftpClient.UploadAsyncSftpClient.SynchronizeDirectoriesAsyncSshCommand.ExecuteAsync
Related Skills
node-connect
352.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
