摘自:http://www.ab-weblog.com/en/creating-a-restricted-ssh-user-for-ssh-tunneling-only/
sudo useradd
sshtunnel -m -d
/home/sshtunnel
-s
/bin/rbash
sudo passwd
sshtunnel
sudo chmod
555
/home/sshtunnel/
cd
/home/sshtunnel/
sudo chmod
444 .bash_logout .bashrc .profile