DEV Community

tingshuai
tingshuai

Posted on

create ssh public/private key pair abc

Step1:通过命令 ssh-keygen 生成 SSH Key

ssh-keygen -t ed25519 -C "Gitee SSH Key"
Enter fullscreen mode Exit fullscreen mode

Step2:查看生成的 SSH 公钥和私钥

ls ~/.ssh/
Enter fullscreen mode Exit fullscreen mode

Step3:读取公钥文件 ~/.ssh/id_ed25519.pub

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

Top comments (0)