vagrant 启动虚拟机以后想通过本机的命令行进行连接,这时候需要用到openssh
- 安装openssh
1 | yum install openssh-* -y |
- 查看及启动sshd
1 | systemctl status sshd |
- 修改配置文件
1 | vi /etc/ssh/sshd_config |
- 去掉两处注释
1 | Port 22 |
- 修改一处配置
1 | PasswordAuthentication yes |
有了这些东西就可以在别的机器上ssh到这个机器了,同时可以使用linux-ssh远程不输入密码
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: false
tags: true