admin 发表于 2024-8-25 10:39:21

搭建私人网页SSH,支持ipv6

前期准备:
1.服务器, 1c 256m 2G硬盘,最好支持ipv6.
2.服务器系统: 必须debian11 或者 debian12

安装教程
1.安装python3-pip
sudo apt update
sudo apt install build-essential zlib1g-dev libncurses5-dev \
libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev \
libreadline-dev libffi-dev curl libbz2-dev wget screen -y
wget https://www.python.org/ftp/python/3.11.1/Python-3.11.1.tar.xz2.解压编译安装

tar -xf Python-3.11.1.tar.xz
cd Python-3.11.1/
./configure --enable-optimizations
make -j 4
sudo make altinstall
sudo ln -sf /usr/bin/python3.11.1 /usr/bin/python
sudo apt install python3-pip3.下载webssh,后台运行

git clone https://github.com/huashengdun/webssh.git
cd webssh && screen -S websssh && python3 setup.py install4.运行webssh

wssh --fbidhttp=False结尾:关闭ssh,通过 ip:8888 即可访问
DEMO:https://webssh.nomao.top
内容来源:
https://blog.wilxx.com/archives/78
https://www.tang.show/linux/
https://github.com/crazypeace/huashengdun-webssh


页: [1]
查看完整版本: 搭建私人网页SSH,支持ipv6