From 7ce8619286d952c370b081adb97c8bad16ca541e Mon Sep 17 00:00:00 2001 From: Kan <41794921+TheK4n@users.noreply.github.com> Date: Fri, 19 Nov 2021 19:34:37 +0300 Subject: [PATCH] Update ssh.md --- doc/ssh.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/doc/ssh.md b/doc/ssh.md index 125bb4b..af28550 100644 --- a/doc/ssh.md +++ b/doc/ssh.md @@ -14,15 +14,14 @@ * For local server: * ``` - PubkeyAuthentication yes # only ssh-key - PermitRootLogin no # only sudo and su - Match Host 192.168.5.*,127.0.0.1 - PermitRootLogin yes # root only local - + PubkeyAuthentication yes # only ssh-key PasswordAuthentication no - Match User root - PasswordAuthentication yes # root auth only password from local + + Match Host 192.168.50.*,127.0.0.1 + PermitRootLogin yes # root only local + Match User root + PasswordAuthentication yes # root auth only password from local ``` -https://www.opennet.ru/base/sec/ssh_tips.txt.html \ No newline at end of file +https://www.opennet.ru/base/sec/ssh_tips.txt.html