Board logo

标题: SSH/SFTP banner 登录提示 [打印本页]

作者: linda    时间: 2021-9-18 11:25     标题: SSH/SFTP banner 登录提示

1) By default sshd server turns off this feature.

2) Login as the root user; create your login banner file:

# vi /etc/ssh/sshd-banner
Append text:
Welcome to nixCraft Remote Login!

3) Open sshd configuration file /etc/sshd/sshd_config using a text editor:

# vi /etc/sshd/sshd_config

4) Add/edit the following line:

Banner /etc/ssh/sshd-banner

5) Save file and restart the sshd server:
systemctl restart sshd

原文:https://www.cyberciti.biz/tips/change-openssh-sshd-server-login-banner.html




欢迎光临 中神通公司交流论坛 (http://www.trustcomputing.com.cn/bbs/) Powered by Discuz! 6.0.0