Skip to main content
added 89 characters in body
Source Link
αғsнιη
  • 42k
  • 17
  • 75
  • 118

well, if you mean show a different banner either per user or IP address connecting through ssh, you have options for these both as following using Match command;

  1. different banner based on username:

    # put in Match section like Match User sshUser Banner /path/to/specific_banner 
  2. different banner based on IP address:

    # put in Match section like Match Address 10.20.30.0/24 Banner /path/to/specific_banner 

so, it's possible; you will just need to restartreload the sshd of course to take changes affecteffect; if your sshd version has no reload command (in worst condition), you will need restart it.

well, if you mean show a different banner either per user or IP address connecting through ssh, you have options for these both as following using Match command;

  1. different banner based on username:

    # put in Match section like Match User sshUser Banner /path/to/specific_banner 
  2. different banner based on IP address:

    # put in Match section like Match Address 10.20.30.0/24 Banner /path/to/specific_banner 

so, it's possible; you will need to restart sshd of course to take changes affect.

well, if you mean show a different banner either per user or IP address connecting through ssh, you have options for these both as following using Match command;

  1. different banner based on username:

    # put in Match section like Match User sshUser Banner /path/to/specific_banner 
  2. different banner based on IP address:

    # put in Match section like Match Address 10.20.30.0/24 Banner /path/to/specific_banner 

so, it's possible; you will just need to reload the sshd to take changes effect; if your sshd version has no reload command (in worst condition), you will need restart it.

Source Link
αғsнιη
  • 42k
  • 17
  • 75
  • 118

well, if you mean show a different banner either per user or IP address connecting through ssh, you have options for these both as following using Match command;

  1. different banner based on username:

    # put in Match section like Match User sshUser Banner /path/to/specific_banner 
  2. different banner based on IP address:

    # put in Match section like Match Address 10.20.30.0/24 Banner /path/to/specific_banner 

so, it's possible; you will need to restart sshd of course to take changes affect.