- 查看是否存在sshkey
ls -al ~/.ssh
- 生成sshkey
ssh-keygen -t rsa -C "your_email@example.com"
- copy sshkey
pbcopy < ~/.ssh/id_rsa.pub
如提示不存在问题。可以这样
cd .ssh
cat id_rsa.pub
终端显示,复制过去
ls -al ~/.ssh
ssh-keygen -t rsa -C "your_email@example.com"
pbcopy < ~/.ssh/id_rsa.pub
如提示不存在问题。可以这样
cd .ssh
cat id_rsa.pub
终端显示,复制过去
本文标题:ssh key
本文链接:https://www.haomeiwen.com/subject/wzdzmxtx.html
网友评论