Skip to content

Instantly share code, notes, and snippets.

@changhuixu
Created June 20, 2020 15:03
Show Gist options
  • Select an option

  • Save changhuixu/b20f3a013a9c0f4381578a67fac09fb3 to your computer and use it in GitHub Desktop.

Select an option

Save changhuixu/b20f3a013a9c0f4381578a67fac09fb3 to your computer and use it in GitHub Desktop.
var config = new SftpConfig
{
Host = "test.rebex.net",
Port = 22,
UserName = "demo",
Password = "password"
}; // can be retrieved from appsettings.json
using var client = new SftpClient(config.Host, config.Port, config.UserName, config.Password);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment