Hadyai Internet R&D LAB

แหล่งความรู้ => Server => Linux Server System => ข้อความที่เริ่มโดย: admin ที่ 16 กรกฎาคม 2008, 06:47:07

หัวข้อ: Procedure to change OpenSSH pre login banner
เริ่มหัวข้อโดย: admin ที่ 16 กรกฎาคม 2008, 06:47:07
Procedure to change OpenSSH pre login 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-bannerAppend text:
Welcome to nixCraft Remote Login!

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

# vi /etc/sshd/sshd_config4) Add/edit the following line:

Banner /etc/ssh/sshd-banner5) Save file and restart the sshd server:

# /etc/init.d/sshd restart6) Test your new banner (from Linux or UNIX workstation or use any other ssh client):

$ ssh vivek@rh3es.nixcraft.orgOutput:
Welcome to nixCraft Labs!
vivek@ rh3es.nixcraft.org's password:

Please note that this feature may not work with third party ssh client such as Putty.