Clearing the terminal before displaying MOTD

Posted by user1417933 on Super User See other posts from Super User or by user1417933
Published on 2012-06-03T20:20:00Z Indexed on 2012/06/03 22:42 UTC
Read the original article Hit count: 176

Filed under:
|
|

When I connect to my SSH server, it prompts me for the user name and password. After I have authenticated, it will display my MOTD, then show user prompt, like this:

Using username "root".
Authenticating with public key "everssh"
this is my motd
root@debian:~#

I want to edit some file so that the screen is cleared before the MOTD prints (so basically calling the clear command would do). I heard that the MOTD is displayed by using cat /etc/motd in a startup file, however after searching around I can't find where it is called from.

Does anyone know how I can find it?

© Super User or respective owner

Related posts about ssh

Related posts about debian