Nuxtstop

For all things nuxt.js

How to create a new SSH key

How to create a new SSH key
1 0

As a software developer it is common to connect to various services via SSH. Be it a remote SQL database or Git or a web server, we mostly use SSH to connect to the server.

Password authentication is not up to date anymore and short SSH RSA keys do not provide the expected security.

Good that there is ed25519 :)

You can generate a key with the following command

ssh-keygen -t ed25519 -C "mail@example.com"
Enter fullscreen mode Exit fullscreen mode

You'll be asked where to save the key. The default location is ~/.ssh/id_ed25519.pub

Then you can copy your public key to the server. To show it use following command

cat ~/.ssh/id_ed25519.pub
Enter fullscreen mode Exit fullscreen mode