天天在微博上看到大家说 高大上 高大上
于是手一抖就注册了下 gaodashang.com
【阅读全文】
Monthly Archives: 11月 2013
高大上 gaodashang.com
2013-11-08 by Jinyang | 1 Comment | Filed in Uncategorized美联邦 meilianbang.com
2013-11-08 by Jinyang | No Comments | Filed in 域名时尚购物社区:发现潮流精品 分享网购乐趣
美联邦 meilianbang.com
【阅读全文】
[转]开只允许用来代理上网的SSH账号的方法
2013-11-08 by Jinyang | No Comments | Filed in Uncategorized这个方法的副作用就是只有root才能使用sftp!
创建用户组,创建用户,设置密码:
groupadd SSHTunnel
useradd -g SSHTunnel -s /bin/bash -d /home/tunnel TunnelUser1
passwd TunnelUser1
设置sftp权限:
chmod 700 /usr/lib/openssh/sftp-server
在/etc/ssh/sshd_config内添加:
Match Group SSHTunnel
AllowTcpForwarding yes
ForceCommand sh /home/tunnel/tunnelshell.sh
下载设置登陆脚本:
wget https://chencp.info/tunnelshell.sh --no-check-certificate - O /home/tunnel/tunnelshell.sh
ln -s /home/t....
【阅读全文】