From d76dc8879060a31d8dc8847f0b33a173d4853d9a Mon Sep 17 00:00:00 2001 From: Dmitry Date: Thu, 14 Nov 2019 12:26:07 +0300 Subject: [PATCH] update readme --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 771165f..b932a30 100644 --- a/README.md +++ b/README.md @@ -30,4 +30,15 @@ chmod +x /usr/local/bin/docker-compose ``` export PROMPT='${ret_status} $fg[red]%}$USER$fg[yellow]%}@$fg[cyan]%}%m %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)' ``` -Append to `~/.ssh/zshrc` file \ No newline at end of file +Append to `~/.ssh/zshrc` file + +## Disable SSH by password +* add pub keys to `~/.ssh/authorized_keys` +* check you are able to SSH without password +* disable SSH by password. edit `/etc/ssh/sshd_config` +``` +PasswordAuthentication no +ChallengeResponseAuthentication no +UsePAM no +``` +* `sudo systemctl restart ssh` \ No newline at end of file