useradd -M -s /sbin/nologin -n vpn01
这个账号只能用来ssh连接无登录权限.
cat /etc/passwd
vpn01:!!:16341:0:99999:7:::
删掉那两个
/etc/ssh/sshd_config:
PermitEmptyPassw0rds yes
/etc/ini.d/sshd restart
cat /etc/ssh/sshd_config | grep Gate
GatewayPorts yes
ssh.exe -N -p 22 -g -C -c 3des -o StrictHostKeyChecking=no -o TCPKeepAlive=yes -o ServerAliveInterval=30 vpn01@avalon.pw -R 3388:localhost:3389
ssh -v -v -N -p 22 -g -C -c 3des vpn01@avalon.pw -D 0.0.0.0:1080