SSH Key

  • 查看 .ssh
ls -al ~/.ssh
  • 创建 .ssh
mkdir ~/.ssh
  • 生成 Key
cd ~/.ssh
ssh-keygen -t rsa -b 2048 -C "[email protected]"
  • Mac 13
ssh-keygen -t ed25519

连续回车即可

  • 查看公钥
cat id_rsa.pub
cat ~/.ssh/id_ed25519.pub
  • 拷贝公钥至剪贴板
pbcopy 
pbcopy 

你可能感兴趣的:(SSH Key)