SSH Key

作者: iVikings | 来源:发表于2022-11-03 14:08 被阅读0次
    • 查看 .ssh
    ls -al ~/.ssh
    
    • 创建 .ssh
    mkdir ~/.ssh
    
    • 生成 Key
    cd ~/.ssh
    
    ssh-keygen -t rsa -b 2048 -C "example@xx.com"
    
    • Mac 13
    ssh-keygen -t ed25519
    

    连续回车即可

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

    相关文章

      网友评论

          本文标题:SSH Key

          本文链接:https://www.haomeiwen.com/subject/llzytdtx.html