ssh key管理

来源:互联网 发布:兰亭序真迹在哪里 知乎 编辑:程序博客网 时间:2024/06/05 06:08
How to Generate an SSH Key 
  1. From the Terminal or Git Bash, run ssh-keygen
  2. Confirm the default path .ssh/id_rsa
  3. Enter a passphrase (recommended) or leave it blank.
    Remember this passphrase, as you will need it to unlock the
    key whenever you use it.
  4. Open ~/.ssh/id_rsa.pub and copy & paste the contents into
    the box below, then click on "Add".
    Note that id_rsa.pub is your public key and can be shared,
    while id_rsa is your private key and should be kept secret.

生成ssh key后 需要应用 得经过如下两步 引入下私钥

chmod 600 ~/.ssh/id_rsa

ssh-add ~/.ssh/id_rsa

0 0
原创粉丝点击