前期准备:
1.服务器
2.服务器系统: 必须debian11 或者 debian12
3.服务器配置要求: 1c 256m 2G硬盘,最好支持ipv6.
安装教程
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.xz
2.解压编译安装
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-pip
3.下载webssh,后台运行
git clone https://github.com/huashengdun/webssh.git
cd webssh && screen -S websssh && python3 setup.py install
4.运行webssh
wssh --fbidhttp=False
结尾:关闭ssh,通过 ip:8888 即可访问
内容来源:
https://blog.wilxx.com/archives/78
https://www.tang.show/linux/使用webssh在网页上ssh连接服务器/#!
https://github.com/crazypeace/huashengdun-webssh