Google+

Thursday 9 January 2014

To configure log on banner for ssh clients

SSH(Secure shell protocol ) is used to connect UNIX based machines remotely. ssh protocol  encrypts the Data connection between server and client. It uses port no 22.

While connecting servers remotely we can set banners to display in command line which includes server details and any access rights and issues. This is possible only in ssh protocol version 2 and initially no banners are configured.


Configuration details.



1.Create a banner file using vim editor and save the file.


$ vim /etc/banner

############ Welcome to Project X############

######You are accessing a secured environment###



2.Open the sshd configuration file (/etc/ssh/sshd_config) add the path to banner.


$ vim /etc/ssh/sshd_config

Banner /etc/banner



3. Restart the sshd service 


$ service sshd restart

Now try to login to the server via Putty.You will see the banner configured.


logon-banner-in-linux