From owner-freebsd-net Fri May 12 19:51:58 2000 Delivered-To: freebsd-net@freebsd.org Received: from cr31617-a.lndn1.on.wave.home.com (cr31617-a.lndn1.on.wave.home.com [24.112.227.163]) by hub.freebsd.org (Postfix) with ESMTP id A561E37B83D for ; Fri, 12 May 2000 19:51:55 -0700 (PDT) (envelope-from jbailie@cr31617-a.lndn1.on.wave.home.com) Received: (from jbailie@localhost) by cr31617-a.lndn1.on.wave.home.com (8.9.3/8.9.3) id WAA02032; Fri, 12 May 2000 22:51:48 -0400 (EDT) (envelope-from jbailie) Date: Fri, 12 May 2000 22:51:48 -0400 From: James Bailie To: Jan Beck Cc: freebsd-net@freebsd.org Subject: Re: socket programming Message-ID: <20000512225148.A1992@cr31617-a.lndn1.on.wave.home.co> References: <4.2.0.58.20000511231604.00a4b560@mail.janbeck.com> <4.2.0.58.20000511231604.00a4b560@mail.janbeck.com> <20000512064458.A3593@cr31617-a.lndn1.on.wave.home.co> <4.2.0.58.20000512182856.00a45550@mail.janbeck.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <4.2.0.58.20000512182856.00a45550@mail.janbeck.com>; from jan@janbeck.com on Fri, May 12, 2000 at 06:34:47PM -0500 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, May 12, 2000 at 06:34:47PM -0500, Jan Beck wrote: > I am using a telnet client to connect > to my server on a non-well known port. I can exchange messages (text) > between the server and the client, but dont know how to hide the password > on the initial login. The telnet client needs to be told not to echo keystrokes, by sending the appropriate commands in the telnet protocol. I have Steven's TCP/IP Illustrated Vol. I open on my lap. I've never done this myself, but it appears straightforward: You must send three bytes to the client with the following decimal values: 255, which means, "interpret the following data as a command," then 254, which means, "don't do this," and then 1 to specify echoing. The client must agree by sending 255, 252, 1. The client must agree under the protocol, so if you don't get that response, something's wrong. -- James Bailie http://members.home.net/jazzturk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message