How to generate SSH keys with RSA, ECDSA, ED25519

--

  • ED25519

แนะนำ! ทำงานเร็ว ปลอดภัย การรองรับเฉพาะระบบใหม่ๆ

$ ssh-keygen -o -a 100 -t ed25519 -f <remote hostname>

or

$ ssh-keygen -t ed25519 -f <remote hostname>

  • RSA 4096 bit

ทำงานช้ากว่า ปลอดภัยกลาง รองรับแพร่หลาย

$ ssh-keygen -t rsa -b 4096 -f <remote hostname>

  • ECDSA

คล้ายแบบที่ 1 แนะนำแบบที่ 1

$ ssh-keygen -t ecdsa -b 521 -f <remote hostname>

  1. ref1: https://medium.com/risan/upgrade-your-ssh-key-to-ed25519-c6e8d60d3c54
    ref2: https://www.ssh.com/ssh/keygen/
    ref3: https://docs.gitlab.com/ee/ssh/README.html#common-steps-for-generating-an-ssh-key-pair

--

--

TiTi all in a day’s work
TiTi all in a day’s work

Written by TiTi all in a day’s work

Innovation life blend it like latte! Programmer, System Engineer, System Integrator, Network Engineer

No responses yet