From 8f525d9d28d695a2182aae356dce8b87e5182813 Mon Sep 17 00:00:00 2001 From: starry <115192496+sky22333@users.noreply.github.com> Date: Sat, 29 Nov 2025 22:25:20 +0800 Subject: [PATCH] Update README.md --- dev/README.md | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/dev/README.md b/dev/README.md index 0076acf..010f97e 100644 --- a/dev/README.md +++ b/dev/README.md @@ -9,13 +9,13 @@ --- -### 常用运维脚本 +## 常用运维脚本 -- 一键切换系统源脚本 +#### 一键切换系统源脚本 ``` bash <(curl -sSL https://github.com/sky22333/shell/raw/main/dev/mirrors.sh) ``` -- 切换官方系统源 +#### 切换官方系统源 ``` bash <(curl -sSL https://github.com/sky22333/shell/raw/main/dev/mirrors.sh) --use-official-source true ``` @@ -24,40 +24,40 @@ bash <(curl -sSL https://cdn.jsdelivr.net/gh/sky22333/shell@main/dev/mirrors.sh) ``` -- 一键安装Docker和配置镜像地址 +#### 一键安装Docker和配置镜像地址 ``` bash <(curl -sSL https://github.com/sky22333/shell/raw/main/dev/docker.sh) ``` -- acme.sh 证书一键申请脚本 +#### acme.sh 证书一键申请脚本 ``` bash <(curl -sSL https://github.com/sky22333/shell/raw/main/dev/acme.sh) ``` -- Linux切换到标准内核: +#### Linux切换到标准内核: ``` bash <(curl -sSL https://github.com/sky22333/shell/raw/main/dev/image.sh) ``` -- 一键安装go环境: +#### 一键安装go环境: ``` bash <(curl -sSL https://github.com/sky22333/shell/raw/main/dev/go.sh) ``` -- 一键内网穿透(无需域名和服务器): +#### 一键内网穿透(无需域名和服务器): ``` bash <(curl -sSL https://github.com/sky22333/shell/raw/main/dev/cf-tunnel.sh) ``` -- `win`系统`PowerShell`在线脚本,需要以管理员模式打开`PowerShell` +#### `win`系统`PowerShell`在线脚本,需要以管理员模式打开`PowerShell` ``` iwr -useb https://ghproxy.net/https://raw.githubusercontent.com/sky22333/shell/main/dev/cf-setup.ps1 | iex ``` -- 一键修改root密码: +#### 一键修改root密码: ``` bash <(curl -sSL https://github.com/sky22333/shell/raw/main/dev/root.sh) ``` @@ -68,10 +68,11 @@ bash <(curl -sSL https://cdn.jsdelivr.net/gh/sky22333/shell@main/dev/root.sh) > > 打开文件查找`PasswordAuthentication no`此代码将其注释,然后重启SSH服务。 -- SSH公钥批量下发脚本 - -`ed25519`加密方式 +#### SSH公钥批量下发脚本 +> -url "公钥链接" +> -pub "公钥内容" +> -port "端口" +> -off 关闭密码认证 ``` -bash <(curl -sSL https://cdn.jsdelivr.net/gh/sky22333/shell@main/dev/ssh-pub.sh) -pub "your-public-key" +bash <(curl -sSL https://cdn.jsdelivr.net/gh/sky22333/shell@main/dev/ssh-pub.sh) -url "https://example.com/id_ed25519.pub" ``` -