ASCII art creator/
To change the message displayed before login, edit /etc/ssh/sshd_config :
sudo vim /etc/ssh/sshd_configand add (or uncomment) the line:
Banner /etc/banner/etc/banner can be whatever file you want. Then edit /etc/banner
sudo vim /etc/bannerYou’ll probably need to restart sshd before your changes take effect:
sudo /etc/init.d/ssh restartTo change the message displayed after login, edit /etc/motd :
sudo vim /etc/motdand enter the message you want to display.
No comments:
Post a Comment