News for hackers. Stuff that matters.
Re:A security update for the Raspberry Pi by jcriddle4 on Wednesday November 30, 2016 @11:16AM (#13071911)
I wonder if instead they could setup a fake or jailed SSH that would let you login, it would then display helpful info about how to really enable SSH and then it would kick you out?
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.
Re:A security update for the Raspberry Pi by b101010 on Wednesday November 30, 2016 @12:08PM (#13072456)
part of this can be done with openSSH by setting the banner option in sshd_config.

"Banner The contents of the specified file are sent to the remote user before authentication is allowed. If the argument is ``none'' then no banner is displayed. By default, no banner is displayed."

Re:A security update for the Raspberry Pi by falcolas on Wednesday November 30, 2016 @12:01PM (#13072383)
Given that you can specify a "shell" on SSH login, it's definitely possible.
Re:A security update for the Raspberry Pi by digitalsushi on Wednesday November 30, 2016 @12:18PM (#13072565)
To people who might experiment with this: Be careful! A teenager me, two decades ago, changed the shell of a system account to a joke program, and I didn't know they could suspend that joke and grab a system subshell. Then again, learning one the hard way every now and then is a great way to boost your working memory.