一行命令共享 SSH 终端会话

1 TMP_DIR=$(mktemp -d) && trap 'rm -rf "$TMP_DIR"' EXIT && curl -fsSL https://github.com/owenthereal/upterm/releases/download/v0.20.0/upterm_linux_amd64.tar.gz | tar -xz -C "$TMP_DIR" && "$TMP_DIR"/upterm host && rm -rf "$TMP_DIR" upterm 是 tmate.io 的替代品 该命令会在执行完成后删除 upterm 文件 然后会打印出来 1 2 3 4 5 6 7 8 9 10 11 12 13 ╭─ Session: oNWF9treC2UudFSY7Ztx ─╮ ┌─────────┬────────────────────── ┐ │ Command: │ /bin/bash │ │ Force Command: │ n/a │ │ Host: │ ssh://uptermd.upterm.dev:22 │ │ Authorized Keys: │ n/a │ │ │ │ │ ➤ SSH Command: │ ssh [email protected] │ └─────────┴────────────────────── ┘ ╰─ Run 'upterm session current' to display this again ─╯ 🤝 Accept connections? [y/n] (or <ctrl-c> to force exit) 按 y 即可共享终端 ...

十二月 11, 2025 · 1 分钟

lamp服务器被人恶意绑定域名的解决办法

还没开始就被别人绑定了域名 事情的起因与发现 刚买了个服务器搭建了一个dz,想着域名还没备案,就先搭建了起来,然后在做DDOS测试时偶然发现服务器被别人恶意把域名绑定了 最初的解决方案 没管。。。。。。 后来发现有影响,朋友也一直给我说叫我整下 利用重定向把恶意指向过来的域名指到别处 要利用301重定向,首先我们要在Apache上配置一下,Apache默认是不开启.htaccess的 ...

五月 28, 2016 · 2 分钟