thedark Second Lieutenant
Joined: 30 Jul 2005
Posts: 1074
|
Posted: Sun Jul 31, 2005 10:20 am Post subject: How to force sshd server to display login banner before logi |
|
|
1) By default sshd server turns off this feature.
2) Login as root user; then create your login banner file:
# cat > /etc/ssh/sshd-banner
Welcome to nixCraft Remote Login!
Save the file (press ctrl + d)
3) Open sshd configuration file vi /etc/sshd/sshd_config (Redhat Linux)
# vi /etc/sshd/sshd_config
4) Add/edit the following line:
Banner /etc/ssh/sshd-banner
5) Save file and restart the sshd server:
# /etc/init.d/sshd restart
6) Test your new banner (from linux or freebsd or any ssh client):
$ ssh vivek@rh3es.nixcraft.org
Welcome to nixCraft Labs!
vivek@ rh3es.nixcraft.org's password:
7) Please note that this feature may be not working with third party ssh client such as Putty. |
|