创建公钥
查看本地是否有公钥
Windows Command Line:
type %userprofile%.ssh\id_rsa.pub
GNU/Linux/Mac/PowerShell:
cat ~/.ssh/id_rsa.pub
##如果没有就创建
ssh-keygen -t rsa -C “你的邮箱全称”
如:ssh-keygen -t rsa -C “ss@webull.com”,若默认回车,则创建到默认位置
获取公钥
再次查看
cat ~/.ssh/id_rsa.pub
把红框部分复制到需要sshkey的地方添加即可
复制到剪贴板
Windows Command Line:
type %userprofile%.ssh\id_rsa.pub | clip
Windows PowerSh