Settings for Linux login banner

Source: Internet
Author: User
In the 2017 World tournament, there is a problem, record the operation process.

Set the login banner can modify the/etc/issue file, the contents of the file is:

  • Debian Gnu/linux 9 \ \l*
    where \ n and \l are escape characters, execute the man pam_issue command to see what these escape characters mean:

    Therefore, to achieve the banner required in the topic, you can modify the/etc/issue file as follows:

    Then log in locally for the test effect:

    Note that, by default, the/etc/issue file can only affect the local login, and the topic requires remote login to implement the same banner, which requires the modification of the SSH configuration file/etc/ssh/sshd_config, In line 110th, specify the banner of SSH as/etc/issue

    Then restart the service to take effect systemctl restart sshd
    But here is still a problem, that is, in the remote login can not be escaped, but the original output, looked up some information and no results, temporarily can only be shelved.

Settings for Linux login banner

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.