如何產生 ssh key (公鑰, 私鑰)

Date
Nov 2, 2022
Property
Medium
Created by
Status
Done
Tags
ssh
rsa
 

查看本地ssh key

ls -la ~/.ssh
 

產生ssh key

這裡選擇 rsa 4096 的加密算法 (不同主機之間的兼容性較高)
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"