Viewing posts tagged Security

How can I display a banner when someone attempts to ssh to my server?

This can be set with the Banner directive in sshd_config. First create a banner to display upon connection: root@root [~]# vi /etc/sshd_banner.txtSet the Banner directive to point to this file and restart sshd:root@root [~]# cd /etc/ssh/root@root [/etc/ssh]# cp sshd_config sshd_config.saveroot@root [/etc/ssh]# vi sshd_configroot@root [/etc/ssh]# diff sshd_config sshd_config.save93c93< Banner /etc/sshd_banner.txt---> #Banner ...