首先,建立一個 script, make it executable, and save it in /etc/profile.d. Here is an example script named mot.sh:
QUOTE:
#!/bin/bashNext, edit /etc/ssh/sshd_config as follows:
#
echo -e "
##################################
#
# Welcome to `hostname`
# This system is running `cat /etc/redhat-release`
# kernel is `uname -r`
#
# You are logged in as `whoami`
#
##################################
"
PrintMotd no
This will disable motd. Now restart the sshd service.
# service sshd restart
這樣就可以囉...