WeAir

编译安装Sshwifty

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

安装依赖

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

安装Node.js

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

安装Go

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

编译安装Sshwifty

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

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

后记

其它问题可查询官方文档