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
{{ message }}
This repository was archived by the owner on Aug 26, 2025. It is now read-only.
*`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.
89
89
*`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.
91
93
*`endHost` (required): The host you want to end up on (connect to)
92
94
*`endPort` (optional): Port number of the server. Needed in case the server runs on a custom port (defaults to `22`)
93
95
*`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.
0 commit comments