Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

AmestrisXServe

macrumors 6502
Original poster
Feb 6, 2014
263
4
I know how to add an SSH pre-login banner (and have done so).

What files do I add/modify to add a pre-login and a post-login banner/message for Telnet, and a post-login/greeting message for SSH?

In addition, can I use a C script to include variable content in these messages?

Something along the lines of:

Welcome (USER) to (SERVERNAME)
Your Last Login was (TIMESTAMP)
You are using (DISKUSAGE) of (DISKQUOTA)
You have (PINEMAIL_UNREAD) unread/new messages in your Pine account.


Bonus points if any of you have such a script already made to share.
 
Not very elegant, and post login only, but you could create /etc/motd with a login message. Of course, it will show up for any login (terminal, ssh, telnet).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.