Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.

Commit b2a2df4

Browse files
author
Matthew Rathbone
committed
added readme updates
1 parent c73752d commit b2a2df4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,17 @@ await sshConnection.executeCommand('uptime')
8383

8484
#### `new SSHConnection(options)`
8585

86-
Options are an object with following properties:
86+
Options are an object with following properties:
8787

8888
* `username` (optional): The username used for your ssh connection (equivalent to `-l` option). If not set, it first looks for an `SSH_USERNAME` environment variable. If that is not set, it fallbacks to `USER` environment variable.
8989
* `privateKey` (optional): Can be a `string` or `Buffer` that contains a private key. If not set, it fallbacks to `~/.ssh/id_rsa`
90-
* `agentForward` (optional): Is a `boolean` which uses the `ssh-agent` for connection (defaults to `false`.
90+
* `skipAutoPrivateKey` (optional): Don't try and read `~/.ssh/id_rsa` if no private key is provided
91+
* `agentForward` (optional): Is a `boolean` which uses the `ssh-agent` for connection (defaults to `false`). If set defaults to the value of env.SSH_AUTH_SOCK (all platforms), then `pageant` [on Windows](https://github.com/mscdex/ssh2#client-methods) if no SSH_AUTH_SOCK is present.
92+
* `agentSocket` (optional): Provide your own path to the SSH Agent Socket you want to use. Useful if your app doesn't have access to ENV directly.
9193
* `endHost` (required): The host you want to end up on (connect to)
9294
* `endPort` (optional): Port number of the server. Needed in case the server runs on a custom port (defaults to `22`)
9395
* `bastionHost` (optional): You can specify a bastion host if you want
94-
* `passphrase` (optional): You can specify the passphrase when you have an encrypted private key. If you don't specify the passphrase and you use an encrypted private key, you get prompted in the command line.
96+
* `passphrase` (optional): You can specify the passphrase when you have an encrypted private key. If you don't specify the passphrase and you use an encrypted private key, you get prompted in the command line.
9597

9698
#### `connection.executeCommand(command: string): Promise<void>`
9799

0 commit comments

Comments
 (0)