Hacker News new | ask | show | jobs
by blueflow 1131 days ago
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.
3 comments

Or to actually get a login shell, but without loading the profile:

> ssh host -t "bash --noprofile"

there is also sshd ForceCommand that could be used here