hexo密钥登录GitHub 发表于 2024-07-04 分类于 linux 阅读次数: hexo密钥登录GitHub 创建密钥1ssh-keygen -t rsa -C "邮箱" 一路回车即可 打印出公钥1cat ~/.ssh/id_rsa.pub 将打印出的公钥添加到GitHub 测试是否连接成功1ssh -T [email protected] 修改hexo _config.yml文件1234deploy: type: git repo: [email protected]:username/username.github.io.git branch: main enjoy!