Your browser does not seem to support CSS. If images appear below, please disregard them.
It appears that you're running an Ad-Blocker. This site is monetized by Advertising and by User Donations; we ask that if you find this site helpful that you whitelist us in your Ad-Blocker, or make a Donation to help aid in operating costs.
Previous Thread
Next Thread
Print Thread
Rate This Thread
#46170 - 07/10/08 07:49 PM Pre Login message?  
Joined: Sep 2002
Posts: 390
Shinobi Offline
UGN Member
Shinobi  Offline
UGN Member

Joined: Sep 2002
Posts: 390
Asheville, NC
Ok here is a question that I have yet to find an answer to so hopefully you nerds can help me.

I'm planning on using my BSD box for free shell accounts and what I need is for when someone connects via SSH/telnet something along these lines pop up

Welcome to ninjaBSD. If you are a new user please login with new

login:


Only real thing I have found in regards to changing the message is editing the default: line in /etc/gettytab but that didn't seem to work, in ssh anyway, didn't try in telnet/local login situations.


So anyone who knows how this can be accomplished/if it can be please let me know

Oh its freebsd 7.0


"The secret to creativity is knowing how to hide your sources."
-Albert Einstein

Tech Ninja Security
Sponsored Links
#46179 - 07/11/08 04:37 AM Re: Pre Login message? [Re: Shinobi]  
Joined: Feb 2002
Posts: 7,195
Gremelin Offline
Community Owner
Gremelin  Offline

Community Owner

Joined: Feb 2002
Posts: 7,195
Likes: 3
Portland, OR; USA
To enable a SSH Banner you'll need to:
  • Create a banner:
    nano -w /etc/ssh/sshd-banner
  • Populate the banner file with:
    Welcome to NinjaShell! (UGN Security was here)
  • Open your SSHd Config:
    nano -w /etc/sshd/sshd_config
  • Add in a line pointing to your banner:
    Banner /etc/ssh/sshd-banner
  • Save the file and restart your SSHd server:
    /etc/init.d/sshd restart
  • Test by logging into server; it should respond:
    Welcome to NinjaShell! (UGN Security was here)
    [email protected]'s password:


Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner
#46191 - 07/11/08 05:07 PM Re: Pre Login message? [Re: Gremelin]  
Joined: Sep 2002
Posts: 390
Shinobi Offline
UGN Member
Shinobi  Offline
UGN Member

Joined: Sep 2002
Posts: 390
Asheville, NC
will this carry over to say telnet, or will I have to do the samething with telnet


"The secret to creativity is knowing how to hide your sources."
-Albert Einstein

Tech Ninja Security
#46192 - 07/11/08 05:32 PM Re: Pre Login message? [Re: Shinobi]  
Joined: Feb 2002
Posts: 7,195
Gremelin Offline
Community Owner
Gremelin  Offline

Community Owner

Joined: Feb 2002
Posts: 7,195
Likes: 3
Portland, OR; USA
Originally Posted By: Shinobi
will this carry over to say telnet, or will I have to do the samething with telnet
Telnet discloses all text you type and recieve in your session in plaintext; you should disable telnet and force usage of SSH


Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner
#46196 - 07/12/08 09:26 PM Re: Pre Login message? [Re: Gremelin]  
Joined: Feb 2002
Posts: 7,195
Gremelin Offline
Community Owner
Gremelin  Offline

Community Owner

Joined: Feb 2002
Posts: 7,195
Likes: 3
Portland, OR; USA
BTW, just an FYI; applying a banner for telnet is much the same with the configuration file. On a RedHat Linux (or derivative, such as CentOS, RHEL, or Fedora) machine, it should simply feed out what is in the "/etc/issue.net" file as the Telnet Banner.


Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner
Sponsored Links
#46201 - 07/14/08 12:35 AM Re: Pre Login message? [Re: Gremelin]  
Joined: Sep 2002
Posts: 390
Shinobi Offline
UGN Member
Shinobi  Offline
UGN Member

Joined: Sep 2002
Posts: 390
Asheville, NC
I got the banner using round about your method. However it only displays the message after the person tries to login IE:
login: user
Welcome to NinjaBSD! Login with new if new user
password:


in the gettytab man pages it specifies something about using im and if however both are already specified and the if string is currently pointing to the banner. Here is a c&p of my current gettytab

default:\
:cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:
:if=/etc/issue:\


"The secret to creativity is knowing how to hide your sources."
-Albert Einstein

Tech Ninja Security
#46202 - 07/14/08 12:36 AM Re: Pre Login message? [Re: Shinobi]  
Joined: Sep 2002
Posts: 390
Shinobi Offline
UGN Member
Shinobi  Offline
UGN Member

Joined: Sep 2002
Posts: 390
Asheville, NC
i only have 387 posts? wtf?


"The secret to creativity is knowing how to hide your sources."
-Albert Einstein

Tech Ninja Security
#46203 - 07/14/08 02:01 AM Re: Pre Login message? [Re: Shinobi]  
Joined: Oct 2003
Posts: 1,449
IceMyst Offline
UGN Elite Poster
IceMyst  Offline
UGN Elite Poster

Joined: Oct 2003
Posts: 1,449
Where ever Gizmo is
that's what you get for disappearing shin :P


*Hell hath no fury like a womens anger and damn be the fool who gets in her way*

Donate to the "Baby Trey's Digital Camera" fund here .
#46204 - 07/14/08 02:44 AM Re: Pre Login message? [Re: IceMyst]  
Joined: Sep 2002
Posts: 390
Shinobi Offline
UGN Member
Shinobi  Offline
UGN Member

Joined: Sep 2002
Posts: 390
Asheville, NC
yeah well.........


wow I joined in 02 that was before either of my kids were born....

Last edited by Shinobi; 07/14/08 02:45 AM.

"The secret to creativity is knowing how to hide your sources."
-Albert Einstein

Tech Ninja Security

Member Spotlight
Gremelin
Gremelin
Portland, OR; USA
Posts: 7,195
Joined: February 2002
Show All Member Profiles 
Forum Statistics
Forums45
Topics46,786
Posts81,956
Average Daily Posts11
Members2,159
Most Online1,567
Apr 25th, 2010
Latest Postings
Top Posters(All Time)
UGN Security 39,950
Gremelin 7,195
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Liked Users (All Time)
§intå× Likes: 1
Cold Sunn Likes: 1
Crime Likes: 1
Cyrez Likes: 1
Ghost Likes: 1
Gremelin Likes: 4
Ice Likes: 1
unreal Likes: 1
Top Liked Users (30 Days)
Powered by UBB.threads™ PHP Forum Software 7.6.0
(Snapshot build 20160902)