Is it possible to show a custom message only to users which failed to login into an openssh server?
successful login > no message
failed login > display message
Is it possible to show a custom message only to users which failed to login into an openssh server?
successful login > no message
failed login > display message
The SSH protocol includes the functionality to send messages, but OpenSSH doesn't have a way to send a custom message only for a failed login.
See this related question for more details.
for SSH :
put your text in a file, eg:
In the sshd_conf file, find the line:
Uncomment the line and change the path to your custom SSH banner text file.