Skip to content

Commit 9ed6de1

Browse files
bl-uemscdex
authored andcommitted
docs: fix typos
1 parent 43667ca commit 9ed6de1

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ You can find more examples in the `examples` directory of this repository.
750750
lang: ''
751751
}
752752
}
753-
```
753+
```
754754

755755
* **rekey**() - Emitted when a rekeying operation has completed (either client or server-initiated).
756756

@@ -878,10 +878,10 @@ You can find more examples in the `examples` directory of this repository.
878878

879879
* **strictVendor** - _boolean_ - Performs a strict server vendor check before sending vendor-specific requests, etc. (e.g. check for OpenSSH server when using `openssh_noMoreSessions()`) **Default:** `true`
880880

881-
* **algorithms** - _object_ - This option allows you to explicitly override the default transport layer algorithms used for the connection. The value for each category must either be an array of valid algorithm names to set an exact list (with the most preferrable first) or an object containing `append`, `prepend`, and/or `remove` properties that each contain an _array_ of algorithm names or RegExps to match to adjust default lists for each category. Valid keys:
881+
* **algorithms** - _object_ - This option allows you to explicitly override the default transport layer algorithms used for the connection. The value for each category must either be an array of valid algorithm names to set an exact list (with the most preferable first) or an object containing `append`, `prepend`, and/or `remove` properties that each contain an _array_ of algorithm names or RegExps to match to adjust default lists for each category. Valid keys:
882882

883883
* **kex** - _mixed_ - Key exchange algorithms.
884-
* Default list (in order from most to least preferrable):
884+
* Default list (in order from most to least preferable):
885885
* `curve25519-sha256 (node v14.0.0+)`
886886
* `curve25519-sha256@libssh.org (node v14.0.0+)`
887887
* `ecdh-sha2-nistp256`
@@ -899,7 +899,7 @@ You can find more examples in the `examples` directory of this repository.
899899
* `diffie-hellman-group1-sha1`
900900

901901
* **serverHostKey** - _mixed_ - Server host key formats.
902-
* Default list (in order from most to least preferrable):
902+
* Default list (in order from most to least preferable):
903903
* `ssh-ed25519` (node v12.0.0+)
904904
* `ecdsa-sha2-nistp256`
905905
* `ecdsa-sha2-nistp384`
@@ -911,7 +911,7 @@ You can find more examples in the `examples` directory of this repository.
911911
* `ssh-dss`
912912

913913
* **cipher** - _mixed_ - Ciphers.
914-
* Default list (in order from most to least preferrable):
914+
* Default list (in order from most to least preferable):
915915
* `chacha20-poly1305@openssh.com` (priority of chacha20-poly1305 may vary depending upon CPU and/or optional binding availability)
916916
* `aes128-gcm`
917917
* `aes128-gcm@openssh.com`
@@ -932,7 +932,7 @@ You can find more examples in the `examples` directory of this repository.
932932
* `cast128-cbc`
933933

934934
* **hmac** - _mixed_ - (H)MAC algorithms.
935-
* Default list (in order from most to least preferrable):
935+
* Default list (in order from most to least preferable):
936936
* `hmac-sha2-256-etm@openssh.com`
937937
* `hmac-sha2-512-etm@openssh.com`
938938
* `hmac-sha1-etm@openssh.com`
@@ -948,7 +948,7 @@ You can find more examples in the `examples` directory of this repository.
948948
* `hmac-md5-96`
949949

950950
* **compress** - _mixed_ - Compression algorithms.
951-
* Default list (in order from most to least preferrable):
951+
* Default list (in order from most to least preferable):
952952
* `none`
953953
* `zlib@openssh.com`
954954
* `zlib`
@@ -1166,7 +1166,7 @@ You can find more examples in the `examples` directory of this repository.
11661166
lang: ''
11671167
}
11681168
}
1169-
```
1169+
```
11701170

11711171
* **rekey**() - Emitted when a rekeying operation has completed (either client or server-initiated).
11721172

SFTP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ SFTP methods
258258

259259
`options` can include `start` and `end` values to read a range of bytes from the file instead of the entire file. Both `start` and `end` are inclusive and start at 0. The `encoding` can be `'utf8'`, `'ascii'`, or `'base64'`.
260260

261-
If `autoClose` is false, then the file handle won't be closed, even if there's an error. It is your responsiblity to close it and make sure there's no file handle leak. If `autoClose` is set to true (default behavior), on `error` or `end` the file handle will be closed automatically.
261+
If `autoClose` is false, then the file handle won't be closed, even if there's an error. It is your responsibility to close it and make sure there's no file handle leak. If `autoClose` is set to true (default behavior), on `error` or `end` the file handle will be closed automatically.
262262
263263
An example to read the last 10 bytes of a file which is 100 bytes long:
264264

0 commit comments

Comments
 (0)