update SSH doc

This commit is contained in:
Jesús 2022-04-17 11:17:40 +08:00
parent c0e0dbfc36
commit b84236c5a3
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -84,6 +84,12 @@ To add a nice welcome message (e.g. from the /etc/issue file), configure the Ban
Banner /etc/issue Banner /etc/issue
``` ```
### Copy public key to server
```console
ssh -i ~/.ssh/mykey.pub user@host
```
#### Securing the authorized_keys file #### Securing the authorized_keys file
For additional protection, you can prevent users from adding new public keys and connecting from them. For additional protection, you can prevent users from adding new public keys and connecting from them.