News for hackers. Stuff that matters.
Re:A security update for the Raspberry Pi by aexaey on Wednesday November 30, 2016 @01:37PM (#13073350)
You don't even need a jail for that. Just add those lines to the end of /etc/ssh/sshd_config:

  Match User pi
        AcceptEnv
        ForceCommand echo 'To enable SSH, do this and that'
EDIT: added an explicit empty "AcceptEnv".
Re:A security update for the Raspberry Pi by tinus_hn on Wednesday November 30, 2016 @02:17PM (#13073727)
Allowing untrusted users to run programs is a recipe for disaster. Forcecommand runs its commands using a login shell that gets a lot of information from the connecting user. It wouldn't be the first time someone found an obscure environment variable that turns this into a remote shell.