A banner for ssh server is a few phrase that will come out the time you want to access a server through ssh. By default, this feature is turned off. To turned it on:
- Login as 'root'
- Create your banner file first. In this example, i will create banner file named /home/banner
- Insert your banner message to the file. I will insert 'Welcome to my pc'
- After you have finish with the banner file, open /etc/sshd_config
- # vi /etc/sshd_config
- Uncomment or add the following line
- Restart ssh server
- # /etc/init.d/sshd restart
- When you login, this will be displayed
- # ssh pingu@10.20.20.171
Welcome to my pc
pingu@10.20.20.171's password:
No comments:
Post a Comment