howto setup ssh banner

Taking care of your Linux box.
Posts: 13
Joined: Fri Oct 19, 2007 7:57 pm
Location: Lahore

howto setup ssh banner

Postby scorpion » Fri Nov 13, 2009 2:09 pm

Dear LP members, I want to setup a custom made ssh banner for the users logging in to my server, like we setup in cisco routers. So that whenever a user login to server through ssh he is shown a banner like

Welcome to secure server blah blah .. . .
please enter your username


I have seen this while logging in to some shell provider's shells but don't know how to do that

waiting for your response
"...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and the Ugly)."

Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore

Postby lambda » Fri Nov 13, 2009 4:24 pm


Code: Select all

Banner /path/to/text/file
to /etc/ssh/sshd_config and restart sshd.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "" into their browsers but not ""?

Return to “Administration”

Who is online

Users browsing this forum: No registered users and 1 guest