Skip to content

Commit

Permalink
Merge pull request #458 from Pawel-itv/canary
Browse files Browse the repository at this point in the history
refactor(secure.mdx): SSH Configuration and Fix Typos
  • Loading branch information
aXenDeveloper authored Aug 21, 2024
2 parents 2cb3531 + ac6836c commit 09738c0
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions __old_docs/pages/docs/deployment/secure.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ usermod -aG sudo {username}

</Steps>

## 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.

<Steps>

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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.

Expand Down

0 comments on commit 09738c0

Please sign in to comment.