mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-10 17:25:51 +00:00
Update README.md
This commit is contained in:
@@ -58,6 +58,21 @@ This project was inspired by **Sharp.SSH** library which was ported from java an
|
||||
* Windows Phone 8.0
|
||||
* Universal Windows Platform 10
|
||||
|
||||
##Usage
|
||||
Establish an SFTP connection using both password and public-key authentication:
|
||||
|
||||
```cs
|
||||
var connectionInfo = new ConnectionInfo("sftp.foo.com",
|
||||
"guest",
|
||||
new PasswordAuthenticationMethod("guest", "pwd"),
|
||||
new PrivateKeyAuthenticationMethod("rsa.key"));
|
||||
using (var client = new SftpClient(connectionInfo))
|
||||
{
|
||||
client.Connect();
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
##Building SSH.NET
|
||||
|
||||
Software | net35 | net40 | netstandard1.3 | sl4 | sl5 | wp71 | wp8 | uap10.0 |
|
||||
|
||||
Reference in New Issue
Block a user