将本地hexo迁移至阿里云轻量应用服务器
发表于|更新于
|字数总计:570|阅读时长:2分钟|阅读量:
在root环境下
- 配置服务器80端口参照https://blog.csdn.net/CLOUD_J/article/details/104697089
- 安装nginx
- 使用命令行
1 2 3 4 5
| yum insatll -y nginx 启动服务器: systemctl start nginx systemctl enable nginx 出现create...
|
- 补充:远程连接自己服务器参考:https://blog.csdn.net/qq_42249896/article/details/85200327
- linux命令参考菜鸟教程:https://www.runoob.com/linux/linux-vim.html
输入 ls 查看.ssh 文件夹里面的文件,有 【id_rsa】【 id_rsa.pub】 known_hosts ,ssh秘钥就在 id_rsa.pub文件里
id_rsa是私钥,不能泄露出去
id_rsa.pub是公钥,可以放心地告诉任何人
输入cat id_rsa.pu,直接复制ssh秘钥即可
若需要找秘钥文件路径的话,输入pwd,就可以看到路径了
【windows】Git中添加密钥、ssh密钥的创建与查看(打开id_rsa.pub文件)
参考https://blog.csdn.net/qq_41539778/article/details/109114980#:~:text=2%E3%80%81%E6%9F%A5%E7%9C%8B%E5%AF%86%E9%92%A5%201%EF%BC%89%E5%9C%A8%E5%88%9A%E6%89%8DC%E7%9B%98%E5%88%9B%E5%BB%BAssh%E7%9A%84%E5%9C%B0%E6%96%B9%EF%BC%8C%E6%89%BE%E5%88%B0.s%20sh%E6%96%87%E4%BB%B6%20%EF%BC%8C.ssh%E4%B8%AD%E6%9C%89%E4%B8%80%E4%B8%AA%E6%96%87%E4%BB%B6%E3%80%90id_rsa.pub%E3%80%91%2C%E5%88%9B%E5%BB%BA%E7%9A%84%E5%AF%86%E9%92%A5%E5%B0%B1%E5%82%A8%E5%AD%98%E5%9C%A8%E8%BF%99%E9%87%8C%EF%BC%8C%E4%BD%86%E6%98%AF%E4%B8%8D%E8%83%BD%E5%8F%8C%E5%87%BB%E6%89%93%E5%BC%80%EF%BC%8C,2%EF%BC%89%E7%94%A8windows%E7%9A%84%E5%91%BD%E4%BB%A4%E8%A1%8C%EF%BC%8C%E8%BF%9B%E5%85%A5.ssh%20%E4%B8%AD%E7%9A%84%203%EF%BC%89%E7%94%A8%E5%91%BD%E4%BB%A4%E3%80%90more%20id_rsa.pub%E3%80%91%E8%8E%B7%E5%8F%96%E5%86%85%E5%AE%B9%EF%BC%8C%E4%B8%8B%E9%9D%A2%E8%BF%99%E4%B8%B2%E5%B0%B1%E6%98%AF%E4%BD%A0%E7%9A%84%E5%AF%86%E9%92%A5%EF%BC%88%E5%8F%AF%E4%BB%A5%E5%A4%8D%E5%88%B6%E4%B8%8B%E6%9D%A5%EF%BC%89%E3%80%82
Windows系统如何查看本机ssh公钥?
参考:https://blog.csdn.net/qq_36631580/article/details/123530578