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 is to support SSH certificates. As before the privateKey will
be used for the publicKey (i.e. the derived publicKey) if nothing
is given.
The given publicKey is checked to match the given privateKey.
*[Dynamic (1:1) port forwarding using a SOCKSv5 proxy (using `socksv5`)](#dynamic-11-port-forwarding-using-a-socksv5-proxy-using-socksv5)
22
-
*[Make HTTP(S) connections easily using a custom http(s).Agent](#make-https-connections-easily-using-a-custom-httpsagent)
23
-
*[Invoke an arbitrary subsystem (e.g. netconf)](#invoke-an-arbitrary-subsystem)
24
-
*[Server Examples](#server-examples)
25
-
*[Password and public key authentication and non-interactive (exec) command execution](#password-and-public-key-authentication-and-non-interactive-exec-command-execution)
26
-
*[SFTP-only server](#sftp-only-server)
27
-
*[API](#api)
28
-
*[Client](#client)
29
-
*[Client events](#client-events)
30
-
*[Client methods](#client-methods)
31
-
*[Server](#server)
32
-
*[Server events](#server-events)
33
-
*[Server methods](#server-methods)
34
-
*[Connection events](#connection-events)
35
-
*[Connection methods](#connection-methods)
36
-
*[Session events](#session-events)
37
-
*[Channel](#channel)
38
-
*[Pseudo-TTY settings](#pseudo-tty-settings)
39
-
*[Terminal modes](#terminal-modes)
40
-
*[HTTPAgent](#httpagent)
41
-
*[HTTPAgent methods](#httpagent-methods)
11
+
-[Description](#Description)
12
+
-[Table of Contents](#Table-of-Contents)
13
+
-[Requirements](#Requirements)
14
+
-[Installation](#Installation)
15
+
-[Client Examples](#Client-Examples)
16
+
-[Execute `uptime` on a server](#Execute-uptime-on-a-server)
17
+
-[Start an interactive shell session](#Start-an-interactive-shell-session)
18
+
-[Send a raw HTTP request to port 80 on the server](#Send-a-raw-HTTP-request-to-port-80-on-the-server)
19
+
-[Forward local connections to port 8000 on the server to us](#Forward-local-connections-to-port-8000-on-the-server-to-us)
20
+
-[Get a directory listing via SFTP](#Get-a-directory-listing-via-SFTP)
-[Dynamic (1:1) port forwarding using a SOCKSv5 proxy (using socksv5)](#Dynamic-11-port-forwarding-using-a-SOCKSv5-proxy-using-socksv5)
24
+
-[Make HTTP(S) connections easily using a custom http(s).Agent](#Make-HTTPS-connections-easily-using-a-custom-httpsAgent)
25
+
-[Invoke an arbitrary subsystem](#Invoke-an-arbitrary-subsystem)
26
+
-[Server Examples](#Server-Examples)
27
+
-[Password and public key authentication and non-interactive (exec) command execution](#Password-and-public-key-authentication-and-non-interactive-exec-command-execution)
28
+
-[SFTP-only server](#SFTP-only-server)
29
+
-[API](#API)
30
+
-[Client](#Client)
31
+
-[Client events](#Client-events)
32
+
-[Client methods](#Client-methods)
33
+
-[Server](#Server)
34
+
-[Server events](#Server-events)
35
+
-[Server methods](#Server-methods)
36
+
-[Connection events](#Connection-events)
37
+
-[Connection methods](#Connection-methods)
38
+
-[Session events](#Session-events)
39
+
-[Channel](#Channel)
40
+
-[Pseudo-TTY settings](#Pseudo-TTY-settings)
41
+
-[Terminal modes](#Terminal-modes)
42
+
-[HTTPAgent](#HTTPAgent)
43
+
-[HTTPAgent methods](#HTTPAgent-methods)
42
44
43
45
## Requirements
44
46
@@ -716,6 +718,8 @@ You can find more examples in the `examples` directory of this repository.
716
718
717
719
***privateKey** - _mixed_ - _Buffer_ or _string_ that contains a private key for either key-based or hostbased user authentication (OpenSSH format). **Default:** (none)
718
720
721
+
***publicKey** - _mixed_ - _Buffer_ or _string_ that contains a public key or SSH certificate for either key-based or hostbased user authentication (OpenSSH format). **Default:** (derived from private key)
722
+
719
723
***passphrase** - _string_ - For an encrypted private key, this is the passphrase used to decrypt it. **Default:** (none)
720
724
721
725
***localHostname** - _string_ - Along with **localUsername** and **privateKey**, set this to a non-empty string for hostbased user authentication. **Default:** (none)
0 commit comments