Update README.md

pull/4/head
Tai 3 years ago committed by GitHub
parent a00c9be8e7
commit 98cd5aaa7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -54,7 +54,7 @@ nano authorized_keys
```
If you'd like to learn how to create an SSH key do so [here](https://github.com/StarWhiz/docker_deployment_notes/tree/master/initial%20ubuntu%20setup/putty%20keys%20tutorial)
### 5. Disable Root Login
### 5. Disable Root Login by Password and Disable Login by Password (You will need to login via SSH Key)
```
sudo sed --in-place 's/^PermitRootLogin.*/PermitRootLogin prohibit-password/g' /etc/ssh/sshd_config
sudo sed --in-place 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config

Loading…
Cancel
Save