修改ssh登录提示信息

  1. 修改issue
    cat /etc/issue
###############################################################
#                       WARNING                               #
#  All connections are monitored and recorded                 #
#  Disconnect IMMEDIATELY if you are not an authorized user!  #
###############################################################
  1. 修改sshd
    修改文件/etc/ssh/sshd_config
    将Banner修改成如下:
Banner /etc/issue
  1. 重启sshd
systemctl restart sshd

修改登录后提示信息

  1. 修改/etc/motd
#cat /etc/motd
********************************************************************
*                                                                  *
* This system is for the use of authorized users only.  Usage of   *
* this system may be monitored and recorded by system personnel.   *
*                                                                  *
* Anyone using this system expressly consents to such monitoring   *
* and is advised that if such monitoring reveals possible          *
* evidence of criminal activity, system personnel may provide the  *
* evidence from such monitoring to law enforcement officials.      *
*                                                                  *
********************************************************************