To add a warning banner to SSH, create a banner first:
Step 1: cd /etc/ssh/
Step 2: ssh-banner
Step 3: Type in the Warning message you want such as the one below, then
save the file.
************************************************
Murugayen Banner
************************************************
Step 4 : After creating the banner file, edit the ssh configuration file
$ vi sshd_config
Step 5: Look for the part below on sshd_config
# no default banner path
#Banner /path/banner file
Step 6: And change it to
# no default banner path
Banner /etc/ssh/ssh-banner
Note: Save the file then restart SSH
Step 7: /etc/init.d/ssh restart
Whoo next time you login you should see something like the screenshot below.
No comments:
Post a Comment