添加一个只有ssh权限的user
摘自:http://www.ab-weblog.com/en/creating-a-restricted-ssh-user-for-ssh-tunneling-only/
sudo useradd ssht -m -d /home/ssht -s /bin/rbashsudo passwd sshtsudo chmod 555 /home/ssht/cd /home/ssht/sudo chmod 444 .bash_logout .bashrc .profile
浙公网安备 33010602011771号