账户
正在读取账户…
SSH 公钥
从本地发布文章
获得站长授权后,配置 SSH 并克隆自己的文章仓库。
在本机生成密钥,并将公钥保存在上方。
ssh-keygen -t ed25519在本机 ~/.ssh/config 中加入连接配置。首次连接时核对服务器指纹。
Host chublog HostName localhost Port 2223 User git IdentityFile ~/.ssh/id_ed25519 IdentitiesOnly yes克隆仓库,创建索引和正文,再提交推送。
git clone chublog:content.git my-articles cd my-articles # 创建 index.toml 和 posts/first/main.md git add index.toml posts/first git commit -m 'Publish article' git push -u origin main
查看 index.toml 示例
[[articles]]
id = "first"
folder = "posts/first"
title = "第一篇文章"
description = "文章简介"
tags = ["随笔"]
public = true
# entry = "main.md"作者和时间由系统生成。入口默认 main.md,正文不需要 Frontmatter。
修改密码
发布授权
公钥登记与发布授权分别检查。停用账户会同时撤销登录和发布权限。