WeAir

编译安装Sshwifty

Sshwifty是一个网页版的SSH & Telnet客户端,可以简单的部署在你的电脑或是服务器上。

安装依赖

1
apt install -y autoconf automake libtool build-essential ca-certificates curl git libvips libvips-dev

安装Node.js

1
2
3
4
5
6
sudo wget https://nodejs.org/dist/v22.0.0/node-v22.0.0-linux-x64.tar.gz
sudo tar -zxvf node-v22.0.0-linux-x64.tar.gz -C /usr/local/
sudo chown -R root.root /usr/local/node-v22.0.0-linux-x64/
sudo ln -sf /usr/local/node-v22.0.0-linux-x64/bin/node /usr/local/bin/
sudo ln -sf /usr/local/node-v22.0.0-linux-x64/bin/npm /usr/local/bin/
sudo ln -sf /usr/local/node-v22.0.0-linux-x64/bin/npx /usr/local/bin/

安装Go

1
2
3
4
sudo wget https://go.dev/dl/go1.22.3.linux-amd64.tar.gz
sudo tar -zxvf go1.22.3.linux-amd64.tar.gz -C /usr/local/
sudo ln -sf /usr/local/go/bin/go /usr/local/bin/
sudo ln -sf /usr/local/go/bin/gofmt /usr/local/bin/

编译安装Sshwifty

1
2
3
4
sudo git clone https://github.com/nirui/sshwifty.git
cd sshwifty
sudo npm install
sudo npm run build

编译完成后会在当前路径生成二进制文件sshwifty

后记

其它问题可查询官方文档