Tuesday, June 3, 2008

Creating banner for ssh server

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:

  1. Login as 'root'
  2. Create your banner file first. In this example, i will create banner file named /home/banner
    • # vi /home/banner
    • Insert your banner message to the file. I will insert 'Welcome to my pc'
  3. After you have finish with the banner file, open /etc/sshd_config
    • # vi /etc/sshd_config
    • Uncomment or add the following line
      • Banner /home/banner
  4. Restart ssh server
    • # /etc/init.d/sshd restart
  5. 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: