ssh login welcome message before and after login

Reference: https://www.rainng.com/ssh-banner/

1. The banner command in sshd, its function is to display information before the user logs in, which can prevent some ssh weak passwords from brute force cracking

Operation:
add a path to the sshd_config configuration file

vim /etc/ssh/sshd_config

Insert picture description here
New content to be displayed

vim /etc/ssh_Banner

Insert picture description here

Restart ssh service

systemctl restart sshd

or

service sshd restart

Effect:
In dos
Insert picture description here
In tool:
Insert picture description here

2. Welcome message after ssh login

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_44578029/article/details/111593521