To put in a caution banner to SSH, generate a banner first
Code:
$ cd/etc/ssh/
$ vi ssh-banner
Type in the caution memo you would like
Following making the banner file, alter the ssh configuration file
Look intended for the fraction underneath lying on sshd_config
Code:
# no default banner path
#Banner /path/banner file
plus modify it toward
Code:
# no default banner path
Banner /etc/ssh/ssh-banner
Save this file and afterward restart SSH
Code:
$ /etc/init.d/ssh restart
after that moment you login you must observe banner.
Bookmarks