All Collections
FAQs
How do I generate a new SSH key pair?
How do I generate a new SSH key pair?

Need to generate a new SSH key pair? follow this guide.

James Dodd avatar
Written by James Dodd
Updated over a week ago

Please Note: This is a technical process and may not be comfortable for some users, if that's the case, then please get in touch and we can walk through this on a screenshare.

To create a new SSH key pair:

1. Open a terminal on Linux or macOS, or Git Bash / WSL on Windows.

2. Generate a new ED25519 SSH key pair:

ssh-keygen -t ed25519 -C "email@example.com"
​
Or, if you want to use RSA:

ssh-keygen -o -t rsa -b 4096 -C β€œemail@example.com"

The -C flag adds a comment in the key in case you have multiple of them and want to tell which is which. It is optional.

3. Next, you will be prompted to input a file path to save your SSH key pair to. If you don't already have an SSH key pair and aren't generating a deploy key, use the suggested path by pressing Enter. Using the suggested path will normally allow your SSH client to automatically use the SSH key pair with no additional configuration.

If you already have an SSH key pair with the suggested file path, you will need to input a new file path and declare what host this SSH key pair will be used for in your ~/.ssh/config file.

4. Once the path is decided, you will be prompted to input a password to secure your new SSH key pair. It's a best practice to use a password, but it's not required and you can skip creating it by pressing Enter twice.

If, in any case, you want to add or change the password of your SSH key pair, you can use the -p flag:

ssh-keygen -p -o -f <keyname>


πŸš€ Need More assistance?

If you're stuck or if this isn't something you or your team is comfortable with, then please open a new chat/ticket (chat icon in the bottom right of the screen) or email support@databowl.com.

We're here to assist with any questions you have, and if required we can quote on actioning work like this for as part of our Marketing Services.

Did this answer your question?