Skip to content

Commit

Permalink
Merge pull request #26 from montblu/7-describe-how-to-create-the-serv…
Browse files Browse the repository at this point in the history
…er-key

Add instructions to generate ssh keys
  • Loading branch information
pessoa authored Oct 16, 2024
2 parents 2c46699 + aad7b4f commit ea0f620
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# terraform-kubernetes-jumpserver

## How to generate ssh keys

We need to generate a ssh key pair for the jumpserver to use. You can do this by running the following command:

```bash
ssh-keygen -t ed25519 -C "<name-of-the-jumpserver>" -f <name-of-the-jumpserver>
```

After that you will have a `<name-of-the-jumpserver>` file with the private key and a `<name-of-the-jumpserver>.pub` file with the public key.

```hcl
ssh_host_rsa_key = <content-of-the-jumpserver-file>
ssh_host_rsa_key_public = <content-of-the-jumpserver-file.pub>
```

<!-- BEGIN_TF_DOCS -->
## Requirements

Expand Down

0 comments on commit ea0f620

Please sign in to comment.