SSH Key(Mac)

添加SSH-Key到Github

  1. 打开终端输入

    ssh-keygen -t rsa  
    
  2. 打开Finder前往文件夹

    ~/.ssh/id_rsa.pub
    
  3. 用记事本打开id_rsa.pub 复制全部内容(SSH Key)

    //例子 瞎拼的 ssh-rsa开头.local结尾
    ssh-rsa LKJLJHGJKGKYUH293189273MHJKKJH/2wmCm3cQvKm2KnacXCZ7EEfsDOtfHXuSmRyiLmPzyhJbAkG0b1tE+HR1vAz5MnLd0O/oz8N2K/jijjkhsdjhkjweh72382367jmnbxkdajsd/sZD2Hyqhw4Fh+DJCOlE+LKJHGHJKGKYUTGHBNWVE67567HJGJHhfghfJHGFBNCVMVFGHFJFJHGFJHGF78675123HJGKHJGKJHG/ZhiDa@yangzhidadeMacBook-Pro.local
    
  4. 打开Github设置页面个人设置界面(Settings) - 点击Add SSH Key

    //Nothing...