From 282b9a31989856913fe725b43b8b6f3b8aab0f13 Mon Sep 17 00:00:00 2001 From: thek4n Date: Fri, 19 Nov 2021 19:57:01 +0300 Subject: [PATCH] upd: ssh.md --- doc/ssh.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/ssh.md b/doc/ssh.md index af28550..d99facd 100644 --- a/doc/ssh.md +++ b/doc/ssh.md @@ -6,8 +6,8 @@ * Access for VPS: * ``` PubkeyAuthentication yes + PasswordAuthentication no # only ssh-key - PasswordAuthentication no Match User root PasswordAuthentication yes ``` @@ -15,8 +15,8 @@ * For local server: * ``` PermitRootLogin no # only sudo and su - PubkeyAuthentication yes # only ssh-key - PasswordAuthentication no + PubkeyAuthentication yes + PasswordAuthentication no # only ssh-key Match Host 192.168.50.*,127.0.0.1 PermitRootLogin yes # root only local