***服务端安装:
#Debian / Ubuntu安装:
apt-get install python-pip
pip install ***
#CentOS安装:
yum install python-setuptools && easy_install pip
pip install ***
#启动:
ssserver -p 443 -k password -m aes-256-cfb
#ssserver -p 服务器端口 -k 密码 -m 加密方法
#后台运行
sudo ssserver -p 443 -k password -m aes-256-cfb --user nobody -d start
#ssserver -p 服务器端口 -k 密码 -m 加密方法 --user 运行用户 -d 后台运行
#停止运行
sudo ssserver -d stop
#查询日志
sudo less/more /var/log/***.log
sudo tail -f /var/log/***.log
#-h查询帮助。
#可将配置单独写成一个文件,建一个config.json文件,放在/etc/***/下
(默认没有这个文件,你要自己创建一个),或者放置于其他路径。
vim config.json
server 服务器IP(IPv4/IPv6),注意这也将是服务端监听的IP地址
server_port 服务器端口
local_port 本地端端口
password 用来加密的密码
timeout 超时时间(秒)
method 加密方法,可选"bf-cfb","aes-256-cfb","des-cfb","rc4",
等等。默认是一种不安全的加密,推荐用 "aes-256-cfb"
#配置完成启动
ssserver -c /etc/***/config.json
#后台运行
nohup ssserver -c /etc/***.json > /dev/null 2>&1 &
#开机启动加入/etc/rc.local