From owner-freebsd-questions Thu Feb 6 1:27:27 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5951737B401 for ; Thu, 6 Feb 2003 01:27:26 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31D5C43F75 for ; Thu, 6 Feb 2003 01:27:25 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id h169RLve054314 for ; Thu, 6 Feb 2003 09:27:21 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id h169RLuW054309 for FreeBSD-questions@FreeBSD.ORG; Thu, 6 Feb 2003 09:27:21 GMT Date: Thu, 6 Feb 2003 09:27:21 +0000 From: Matthew Seaman To: FreeBSD-questions@FreeBSD.ORG Subject: Re: How to change Telnet Prelogin message? Message-ID: <20030206092721.GB53194@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , FreeBSD-questions@FreeBSD.ORG References: <1461.192.168.1.10.1044505050.squirrel@email.unixhideout.com> <20030206044512.GR87743@sub21-156.member.dsl-only.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030206044512.GR87743@sub21-156.member.dsl-only.net> User-Agent: Mutt/1.5.3i X-Spam-Status: No, hits=-3.0 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_02_03, USER_AGENT,USER_AGENT_MUTT version=2.44 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Feb 05, 2003 at 08:45:12PM -0800, Nathan Kinkade wrote: > On Wed, Feb 05, 2003 at 11:17:30PM -0500, Michael wrote: > > Hey friends, > > I got a BBS up as you may know from my previous post, and i need to allow > > telnet access. I want a pre login message telling users to please only use > > telnet for BBS and to use SSH2 for shell access. FreeBSDdiary.org is down, > > and FreeBSD cheat sheets example has a much older GETTYTAB. Im almost > > positive you guys can have me hacking this in moments. Pour some knowledge > > on me. Thanks. > > motd(5) Close, but motd is definitely post login. /etc/issue can be used to display a message on the console before the login prompt. All you need do is write some content into the file. This file should work using the standard gettytab(5) file under FreeBSD with both getty(8) and telnetd(8), although I haven't tried using it with telnet recently myself. You want to look for use of the 'if' or the 'im' properties in gettytab(5). The equivalent for sshd(8) is to set the Banner property in /etc/ssh/sshd_config, although this only works if you use the SSH2 protocol. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message