Update _index.en.md

This commit is contained in:
RustDesk 2024-05-24 18:51:01 +08:00 committed by GitHub
parent 949479e465
commit e64cfb7e87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -101,7 +101,7 @@ Please run with the `-h` option to see help if you want to choose your own port.
### Key
Different from the old version, the key in this version is mandatory, but you don't need to set it yourself. When `hbbs` runs for the first time, it will automatically generate a pair of encrypted private and public keys (respectively located in the `id_ed25519` and `id_ed25519.pub` files in the running directory), whose main purpose is for communication encryption.
The key is mandatory, but you don't need to set it yourself. When `hbbs` runs for the first time, it will automatically generate a pair of encrypted private and public keys (respectively located in the `id_ed25519` and `id_ed25519.pub` files in the running directory), whose main purpose is for communication encryption.
If you did not fill in the `Key:` (the content in the public key file `id_ed25519.pub`) in the previous step, it does not affect the connection, but the connection cannot be encrypted.
@ -109,13 +109,6 @@ If you did not fill in the `Key:` (the content in the public key file `id_ed2551
cat ./id_ed25519.pub
```
If you want to prohibit users without the key from establishing non-encrypted connections, please add the `-k _` parameter when running `hbbs` and `hbbr`, for example:
```sh
./hbbs -r <relay-server-ip[:port]> -k _
./hbbr -k _
```
If you want to change the key, remove the `id_ed25519` and `id_ed25519.pub` files and restart `hbbs`/`hbbr`, `hbbs` will generate a new key pair.
{{% notice note %}}