From b84236c5a304078eb589d021b0db82efe726821e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Sun, 17 Apr 2022 11:17:40 +0800 Subject: [PATCH] update SSH doc --- ssh/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ssh/README.md b/ssh/README.md index 4bf1c54..623f8cb 100644 --- a/ssh/README.md +++ b/ssh/README.md @@ -84,6 +84,12 @@ To add a nice welcome message (e.g. from the /etc/issue file), configure the Ban Banner /etc/issue ``` +### Copy public key to server + +```console +ssh -i ~/.ssh/mykey.pub user@host +``` + #### Securing the authorized_keys file For additional protection, you can prevent users from adding new public keys and connecting from them.