How to change the banner Access Server ssh?

A banner of access serves to send a warning message before authentication, for the purpose of obtaining legal protection or simply provide information to users.

The contents of the specified file is sent to the remote user before allowing authentication. This option is only available for version 2. The banner is not displayed by default, if you are using a recent version of its distribution of Linux do not worry version of the protocol.

Procedure to change the banner of access OpenSSH

By default, the sshd server comes with this feature turned off. Then there is a need to logon as root, and create the file to the banner of access:

  deathbian: ~ # vi / etc / ssh / sshd-banner 



And we wrote a text like the following example:

  Welcome to guatewireless! 

Edit / etc / sshd / sshd_config

  deathbian: ~ # vi / etc / sshd / sshd_config 



Add or edit the following line:
Banner /etc/ssh/sshd-banner

Save the file and restart the sshd server:

  deathbian: ~ # / etc / init.d / sshd restart 
  Or 
  deathbian: ~ # service sshd restart 



They can test the service station from a working Linux / Unix or any other SSH client:

  deathbian: ~ $ ssh usuario@dominio.com 


Note:
Note that this feature may not work with third-party clients ssh Putty.

Popularity: 1% [?]