Trilight Zone Forum Index Trilight Zone
Privacy & Anonymity is our specialty !
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to force sshd server to display login banner before logi

 
Post new topic   Reply to topic    Trilight Zone Forum Index -> Linux
Author Message
thedark
Second Lieutenant


Joined: 30 Jul 2005
Posts: 1074

PostPosted: Sun Jul 31, 2005 10:20 am    Post subject: How to force sshd server to display login banner before logi Reply with quote

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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Trilight Zone Forum Index -> Linux All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group