You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project was inspired by **Sharp.SSH** library which was ported from java and it seems like was not supported
12
-
for quite some time. This library is a complete rewrite, without any third party dependencies, using parallelism
13
-
to achieve the best performance possible.
11
+
* Execution of SSH command using both synchronous and asynchronous methods
12
+
* SFTP functionality for both synchronous and asynchronous operations
13
+
* SCP functionality
14
+
* Remote, dynamic and local port forwarding
15
+
* Interactive shell/terminal implementation
16
+
* Authentication via publickey, password and keyboard-interactive methods, including multi-factor
17
+
* Connection via SOCKS4, SOCKS5 or HTTP proxy
14
18
15
-
## Documentation
19
+
## How to Use
16
20
17
-
Documentation is hosted at https://sshnet.github.io/SSH.NET/. Currently (4/18/2020), the documentation is very sparse.
18
-
Fortunately, there are a large number of [tests](https://github.com/sshnet/SSH.NET/tree/develop/test/) that demonstrate usage with working code.
19
-
If the test for the functionality you would like to see documented is not complete, then you are cordially
20
-
invited to read the source, Luke, and highly encouraged to generate a pull request for the implementation of
21
-
the missing test once you figure things out. 🤓
21
+
### Run a command
22
22
23
-
## Features
23
+
```cs
24
+
using (varclient=newSshClient("sftp.foo.com", "guest", newPrivateKeyFile("path/to/my/key")))
Establish a SSH connection using user name and password, and reject the connection if the fingerprint of the server does not match the expected fingerprint:
The library has no special requirements to build, other than an up-to-date .NET SDK. See also [CONTRIBUTING.md](https://github.com/sshnet/SSH.NET/blob/develop/CONTRIBUTING.md).
@@ -54,7 +50,7 @@ using (var client = new SftpClient(connectionInfo))
54
50
55
51
### Verify host identify
56
52
57
-
Establish an SSH connection using user name and password, and reject the connection if the fingerprint of the server does not match the expected fingerprint:
53
+
Establish a connection using user name and password, and reject the connection if the fingerprint of the server does not match the expected fingerprint:
0 commit comments