Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Borber/blog
Browse files Browse the repository at this point in the history
  • Loading branch information
Borber committed Mar 2, 2024
2 parents 0d98697 + 60fd953 commit 680b011
Show file tree
Hide file tree
Showing 346 changed files with 172 additions and 3,636 deletions.
11 changes: 0 additions & 11 deletions assets/scss/base/_glyph-correction.scss

This file was deleted.

210 changes: 0 additions & 210 deletions assets/scss/custom/_custom.scss

This file was deleted.

16 changes: 13 additions & 3 deletions config.toml
Expand Up @@ -236,7 +236,14 @@ pre = "internal"
post = "" # post = "user-circle"

[[menu.main]]
url = "https://www.travellings.cn/go.html"
name = "开往"
weight = 7
pre = "external"
post = ""

[[menu.main]]
weight = 8
identifier = "theme-switcher"

# [[menu.main]]
Expand Down Expand Up @@ -617,6 +624,9 @@ enableComments = true
# 说明:文章的 Front Matter 中的 `comments`
# 的优先级高于此处

# 直接加载评论,不需要手动点击按钮加载
autoLoadComments = true


## Giscus
enableGiscus = true
Expand Down Expand Up @@ -909,12 +919,12 @@ fontFamilyTOC = ""
# 说明文字
fontFamilyCaption = ""
# 页脚
fontFamilyFooter = ""
fontFamilyFooter = "'Source Code Pro', 'Noto Serif TC', 'Noto Serif SC', monospace"
# 主体
fontFamilyBody = "'EB Garamond', 'Noto Serif SC', serif"
fontFamilyBody = "'Amstelvar', 'Noto Serif TC', 'Noto Serif SC', serif"

# 网络字体链接
fontsLink = "https://cdn.jsdelivr.net/gh/Borber/blog/static/css/css2.css"
fontsLink = "https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;500;700&family=Noto+Serif+SC:wght@400;500;700&family=Source+Code+Pro:ital,wght@0,400;0,700;1,400;1,700&family=Cinzel+Decorative:wght@700&display=swap"
# 说明:要想读者一定体验到你设置的字体,最好
# 采用网络字体。MemE 主题目前仅支持
# Google Fonts 的链接,请前往
Expand Down
12 changes: 12 additions & 0 deletions content/tech/centos stream 9 安装 nushell.md
@@ -0,0 +1,12 @@
---
title: "centos stream 9 安装 nushell"
slug: "centos-9-nushell"
images: ["https://cdn.jsdelivr.net/gh/Borber/PublicPic1/headImg/head.png"]
description: "好像悄悄拿的 Fedora 的"
tags: ["centos", "nushell"]
date: 2023-08-30T12:00:04+08:00
---

```bash
sudo dnf copr enable atim/nushell -y && sudo dnf install nushell
```
77 changes: 77 additions & 0 deletions content/tech/cloudflare tunnel 代理 ssh.md
@@ -0,0 +1,77 @@
---
title: "cloudflare tunnel 代理 ssh"
slug: "cf-tunnel-proxy-ssh"
images: ["https://cdn.jsdelivr.net/gh/Borber/PublicPic1/headImg/head.png"]
description: "cf属实是大好人啊"
tags: ["proxy", "cloudflare", "ssh"]
date: 2023-08-30T13:07:04+08:00
---

# 添加 tunnel

![首页](https://i.pstorage.space/i/27WVbvbNA/original_cf-ssh-1.png "首页")

![登陆官网](https://i.pstorage.space/i/5vl8OyxPA/original_cf-ssh-2.png "登陆官网")

![新增 tunnel](https://i.pstorage.space/i/velPp47P9/original_cf-ssh-3.png "新增 tunnel")

![自己命名](https://i.pstorage.space/i/velPp477w/original_cf-ssh-4.png "自己命名")

![服务器运行官方命令](https://i.pstorage.space/i/pn1QdYD1/original_cf-ssh-5.png "服务器运行官方命令")

![进行配置](https://i.pstorage.space/i/5vl8Oy0YM/original_cf-ssh-6.png "进行配置")

![配置域名](https://i.pstorage.space/i/dbJ93loz4/original_cf-ssh-7.png "配置域名")

![如图设置](https://i.pstorage.space/i/JwMqp5lQ/original_cf-ssh-8.png "如图设置")

![添加服务](https://i.pstorage.space/i/27WVbvbvx/original_cf-ssh-9.png "添加服务")

# 开机启动

服务器运行

```bash
sudo systemctl enable cloudflared
```

# ssh 配置远程登陆

因为我用的 root 远程, 所以需要开 root ssh 登陆, 编辑 /etc/ssh/sshd_config 文件

```bash
# 公钥登录
PubkeyAuthentication yes
# 允许 root 登录
PermitRootLogin yes
```

## 配置 密钥登陆

把你本地的 git 公钥 `id_rsa.pub` 复制到服务器上命名为 `authorized_keys` , 并且修改权限

```bash
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
```

# 配置 本地 cloudflared 代理

![在tunnel设置中](https://i.pstorage.space/i/dbJ93NqaA/original_cf-ssh-11.png "在tunnel设置中")

![官方教程](https://i.pstorage.space/i/NZYgMaWJ9/original_cf-ssh-12.png "官方教程")

`example.com` 请替换为你之前设置的

```
Host example.com
ProxyCommand cloudflared access ssh --hostname %h
```

# 运行

```bash
ssh root@example.com
```

![运行成功](https://i.pstorage.space/i/JwMqp594/original_cf-ssh-10.png "运行成功")

0 comments on commit 680b011

Please sign in to comment.