Update README.md

This commit is contained in:
starry
2025-11-29 22:25:20 +08:00
committed by GitHub
parent 6e1ecf0c83
commit 8f525d9d28

View File

@@ -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"
```