Files
shell/dev
2025-12-17 23:03:37 +08:00
..
2025-07-16 12:35:21 +00:00
2025-07-20 18:28:30 +08:00
2025-07-16 12:35:21 +00:00
2025-08-11 02:49:19 +08:00
2025-08-11 03:01:17 +08:00
2025-09-23 15:45:56 +08:00
2025-07-16 12:35:21 +00:00
2025-09-12 23:53:24 +08:00
2025-07-16 12:35:21 +00:00
2025-12-17 23:03:37 +08:00
2025-07-16 12:35:21 +00:00
2025-07-16 12:35:21 +00:00
2025-11-29 22:26:38 +08:00
2025-08-31 03:47:06 +08:00
2025-11-29 19:05:43 +08:00
2025-11-29 22:18:23 +08:00
2025-07-20 18:50:15 +08:00

一键安装ansible

ansible.md

一键重装系统

vps.md


常用运维脚本

一键切换系统源脚本

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
bash <(curl -sSL https://cdn.jsdelivr.net/gh/sky22333/shell@main/dev/mirrors.sh) --use-official-source true

一键安装Docker和配置镜像地址

bash <(curl -sSL https://github.com/sky22333/shell/raw/main/dev/docker.sh)

acme.sh 证书一键申请脚本

bash <(curl -sSL https://github.com/sky22333/shell/raw/main/dev/acme.sh)

Linux切换到标准内核

bash <(curl -sSL https://github.com/sky22333/shell/raw/main/dev/image.sh)

一键安装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

iwr -useb https://ghproxy.net/https://raw.githubusercontent.com/sky22333/shell/main/dev/cf-setup.ps1 | iex

一键修改root密码

bash <(curl -sSL https://github.com/sky22333/shell/raw/main/dev/root.sh)
bash <(curl -sSL https://cdn.jsdelivr.net/gh/sky22333/shell@main/dev/root.sh)

部分机器修改不生效,请打开查找/etc/ssh/sshd_config.d/xxxx.conf类似文件

打开文件查找PasswordAuthentication no此代码将其注释然后重启SSH服务。

SSH公钥批量下发脚本

-url "公钥链接" -pub "公钥内容" -port "端口" -off 关闭密码认证

bash <(curl -sSL https://cdn.jsdelivr.net/gh/sky22333/shell@main/dev/ssh-pub.sh) -url "https://example.com/id_ed25519.pub"