Skip to main content

[Xshell] SSHD Banner message

By Thursday August 11th, 2016Uncategorized

With the release of Xshell 5 build 1005 (Xmanager Enterprise Build 0987) on August 08, 2016, we’ve made a change to when the SSHD banner message is displayed.

  • In the previous build, the banner message was displayed after completing the authentication.
    BannerOutAfterAuth
  • In Build 1005, the banner message is now displayed after the user name is inputted and before authentication is completed.
    BannerOutBeforeAuth

Now that the SSH banner message is displayed during authentication, the system administrators can more effectively display content that must be conveyed to users before login.

Setting the SSH Banner Message

The following guide is for setting the banner message of OpenSSH. If not using OpenSSH, please consult your SSH program’s manual.

  1. Set sshd_config.
    # no default banner path
    Banner /etc/ssh/ssh_banner
  2. Create a file in the path in Step 1 and enter the message you would like to display.
    # vi /etc/ssh/sshd_banner
    ===============================
    The system is currently under maintenance.
    The maintenance schedule is:
    2016.01.01 00:00 ~ 06:00.
    ===============================
  3. Restart the SSH service daemon. (The daemon restart method differs between each OS. Please refer to the manual for your particular OS.)
    # service sshd restart
  4. If you see the message during the authentication process, then the banner message was set successfully.
    BanneMsg

Leave a Reply

nineteen − twelve =