From c841f20971673bbd6412f96b20cd3ea6058ab9cf Mon Sep 17 00:00:00 2001 From: Islam AbdelRahman Date: Mon, 17 Apr 2023 19:17:52 -0300 Subject: [PATCH] Update securing-your-node.md 2FA instructions I was not able to enable 2FA for a long time until I finally figured out that I need to set `PermitRootLogin` to `yes` --- src/guides/node/securing-your-node.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/guides/node/securing-your-node.md b/src/guides/node/securing-your-node.md index 92b6a348..a7b6b033 100644 --- a/src/guides/node/securing-your-node.md +++ b/src/guides/node/securing-your-node.md @@ -438,6 +438,11 @@ Add the following line to the bottom of the file, which indicates to `sshd` that AuthenticationMethods publickey,keyboard-interactive:pam ``` +You will also need to set +```shell +PermitRootLogin yes +``` + Then save and exit the file with `Ctrl+O`, `Enter`, and `Ctrl+X`. Now that `sshd` is set up, we need to create our 2FA codes.