Generate ed25519 Keys

This How To Generate ed25519 Keys helps you to increase security for SSH, but also to have an easier life with login. It guides you thru the ed25519 Keys generation.

How To Generate ed25519 Keys

How To Generate ed25519 Keys


Index of How To Generate ed25519 Keys


ed25519 keys are currently by many cybersecurity experts being considered as a safe way to protect SSH tunnels. Furthermore, ed25519 keys are considered to be a good option to be leveraged on for SSH key authentication. 

SSH key based login is leveraging on certificates / keys (such as ed25519 keys). Producing such keys is very simple, as you can find it in this how to. 

There is one more point, you like to leverage on a strong cryptographic standard. Therefore, this How To guides you for generating Ed25519.

The how to leverages on a standard Linux system, based on Debian.

How To Generate ed25519 Keys

Step 1: Generate Ed25519 Certificates

On your Linux PC open a terminal and run:

ssh-keygen -t ed25519 -C ""

This will generate a new set of keys (private and public key). The output would look like the below. During the process, decide whether you like to set a passphrase for your private key.

pi@raspberry:~$ ssh-keygen -t ed25519 -C ""
Generating public/private ed25519 key pair.
Enter file in which to save the key (/home/openhabian/.ssh/id_ed25519): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/openhabian/.ssh/id_ed25519
Your public key has been saved in /home/openhabian/.ssh/
The key fingerprint is:
SHA256:iic0RyBXlhKNmvr7OxS8z95dcdRi8EmQRpsXG1J3zeE OpenHAB3
The key's randomart image is:
+--[ED25519 256]--+
|  . +=o.   .=+=o=|
|   oooo     oB.B+|
|   + ..    .o OE.|
|  o o.       + . |
| .  oo. S   . .  |
|.  .o+ .     o   |
| . .ooo     .    |
|  . .oo. . .     |
|  .oo+. . .      |

That’s it.

Done & Enjoy! 

I however recommend to consider a couple of Hardening steps that you can find in the next chapter, Additional System Hardening.

Additional Information

More information about SSH can be found here. If you interested into Ed25519, than you maybe like to checkout this.

Follow me

It would be amazing if you follow To follow leverage on

  • Click to follow me on Twitter
  • Bookmark this page and comeback from time to time

Help and Comments

I am really looking forward for you to contact me if for example you found a better option or other idea then in this how to. Also, please touch base if you found an error or anything not working or if you have something that you would love to be added to this how to. Simply click this link to touch base with me.

Linking and Recommending the HowTo or the

I would love to see you are recommending this how to or link it to your website. Also, I would love if you link or recommend the whole Please feel free to do so! In case you like to touch base regarding this topic with me, then simply click this link. I look forward!