We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3e704b commit 6cb91f6Copy full SHA for 6cb91f6
README.md
@@ -58,6 +58,21 @@ This project was inspired by **Sharp.SSH** library which was ported from java an
58
* Windows Phone 8.0
59
* Universal Windows Platform 10
60
61
+##Usage
62
+Establish an SFTP connection using both password and public-key authentication:
63
+
64
+```cs
65
+var connectionInfo = new ConnectionInfo("sftp.foo.com",
66
+ "guest",
67
+ new PasswordAuthenticationMethod("guest", "pwd"),
68
+ new PrivateKeyAuthenticationMethod("rsa.key"));
69
+using (var client = new SftpClient(connectionInfo))
70
+{
71
+ client.Connect();
72
+}
73
74
+```
75
76
##Building SSH.NET
77
78
Software | net35 | net40 | netstandard1.3 | sl4 | sl5 | wp71 | wp8 | uap10.0 |
0 commit comments