diff --git a/__old_docs/pages/docs/deployment/secure.mdx b/__old_docs/pages/docs/deployment/secure.mdx index 337742b5c..892d93f24 100644 --- a/__old_docs/pages/docs/deployment/secure.mdx +++ b/__old_docs/pages/docs/deployment/secure.mdx @@ -122,9 +122,9 @@ usermod -aG sudo {username} -## Generate SSL +## Generate SSH -For more secure connections, you can generate an SSL certificate. We using [Termius](https://termius.com/) to generate the certificate. +For more secure connections, you can generate an SSH certificate. We using [Termius](https://termius.com/) to generate the certificate. @@ -144,9 +144,9 @@ In [Termius](https://termius.com/) open "Settings => `Keychain`" and click on th Save `public key` generated by Termius. -### Create SSL folder +### Create SSH folder -Open the terminal your server and create a folder for the SSL certificate. +Open the terminal your server and create a folder for the SSH certificate. ```bash mkdir /home/{username}/.ssh && cd /home/{username}/.ssh @@ -166,6 +166,12 @@ Now paste the public key generated by Termius into the `authorized_keys` file. Press `Ctrl + X`, then `Y`, then `Enter` to save and exit the file. +### Settings chmod to 600 + +```bash +chmod 600 /home/{username}/.ssh/authorized_keys +``` + ### Restart SSH Service ```bash @@ -174,7 +180,7 @@ systemctl restart sshd ### Test the connection -Now try to connect to your server using the private key and the username you created `without password`. If you can connect, then the SSL certificate has been successfully generated. +Now try to connect to your server using the private key and the username you created `without password`. If you can connect, then the SSH certificate has been successfully generated. From here we will be using the new user for the rest of the guide.