mac

  • 检查
    ls -al ~/.ssh
  • 生成
    ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
  • Adding your SSH key to the ssh-agent
    # start the ssh-agent in the background
    eval "$(ssh-agent -s)"
    # Agent pid 5956
    # Add your SSH key to the ssh-agent
    ssh-add ~/.ssh/id_rsa
  • 复制
    pbcopy < ~/.ssh/id_rsa.pub

参考