This is done via profile.d and can be circumvented by executing anything else than a login shell:
ssh host /bin/sh -i
Better would be enabling PAM via sshd_config and generating the message from there.