but how can it be done effectively without banning also ssh (which is quite unlikely) ?
They know you can't stop all encryption. One time pads will always work when used correctly.
That doesn't matter because they aren't targetting criminals, black-hats, or terrorists. They aren't targetting people that actually have to hide.
They are targetting the technologically unaware.
I always tell people that this isn't aimed at stopping people that really want to hide, it is about monitoring the majority of the population.
Afaik China drops encrypted traffic intermittently to subvert this approach. And you need to rent out some server elsewhere outside the jurisdiction. One could totally dry out the revenue stream for the hoster.