Telnet Banner? SSH Post-Login Message?

Discussion in 'macOS' started by AmestrisXServe, Feb 8, 2014.

  1. AmestrisXServe macrumors 6502

    Feb 6, 2014
    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.
  2. HenryAZ macrumors 6502a


    Jan 9, 2010
    South Congress AZ
    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).

Share This Page