Execute below operations as root user.
1. vi /etc/ssh/sshd_config
# comment out Banner row
# no default banner path
Banner /etc/ssh/ssh-banner-message.txt
1. vi /etc/ssh/sshd_config
# comment out Banner row
# no default banner path
Banner /etc/ssh/ssh-banner-message.txt
2. vi /etc/ssh/ssh-banner-message.txt
# add a new message to text file
# add a new message to text file
3. service sshd restart
# restart ssh service to see banner message
# restart ssh service to see banner message