服务器操作系统:Ubuntu 14.04 LTS x64
1、修改配置
vim /etc/ssh/sshd_config
将 PasswordAuthentication 设置为 no
2、重启SSH服务
service ssh restart
之后就只能使用私钥登录了。没有私钥登录会提示:Permission Denied (publickey).
顺便提一下快速把自己公钥添加到服务器的方法,使用 ssh-copy-id + host 命令可以将当前电脑上的公钥快速添加到服务器。
沉舟侧畔千帆过
缺失模块。
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
一个人的命运啊,当然要靠自我奋斗,但是也要考虑到历史的行程。
很惭愧,就做了一点微小的工作,谢谢大家。