The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
Scripts / handy tips
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 Adding Banner before SSH Login
Author: John Prather 
Date:   26-03-03 19:45

You can add a banner which should be displayed before the password prompt when people attempt to ssh into your server. It is not unlike old /etc/issue banners affecting telnet connections.

# vi /etc/ssh/sshd_config

Set a banner location, such as:

Banner /etc/banner

Make your banner file

# cat > /etc/banner
----------------
Authorized users
only beyond this
point!
----------------
^D

Restart sshd.

Now, when users ssh in, they should see something like this:

~ > ssh host
----------------
Authorized users
only beyond this
point!
----------------

Password:

(If you have disabled PAM by setting ChallengeResponseAuth to no, your password prompt may appear as user@host's password: instead of just Password:)

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org