From owner-freebsd-questions@FreeBSD.ORG Sun Feb 13 15:38:19 2005 Return-Path: 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 C901616A4CE for ; Sun, 13 Feb 2005 15:38:19 +0000 (GMT) Received: from smtp11.wanadoo.fr (smtp11.wanadoo.fr [193.252.22.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77B4A43D2F for ; Sun, 13 Feb 2005 15:38:19 +0000 (GMT) (envelope-from atkielski.anthony@wanadoo.fr) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1106.wanadoo.fr (SMTP Server) with ESMTP id AC1171C000A2 for ; Sun, 13 Feb 2005 16:38:18 +0100 (CET) Received: from pix.atkielski.com (ASt-Lambert-111-2-1-3.w81-50.abo.wanadoo.fr [81.50.80.3]) by mwinf1106.wanadoo.fr (SMTP Server) with ESMTP id 874D01C000A0 for ; Sun, 13 Feb 2005 16:38:18 +0100 (CET) X-ME-UUID: 20050213153818554.874D01C000A0@mwinf1106.wanadoo.fr Date: Sun, 13 Feb 2005 16:38:18 +0100 From: Anthony Atkielski X-Priority: 3 (Normal) Message-ID: <854574739.20050213163818@wanadoo.fr> To: freebsd-questions@freebsd.org In-Reply-To: <420F70C5.60006@makeworld.com> References: <20050213145302.14A9E4BDAA@ws1-1.us4.outblaze.com> <1736042877.20050213155911@wanadoo.fr> <420F6BAF.8060304@makeworld.com> <1374659210.20050213161054@wanadoo.fr> <420F6ED9.8010301@makeworld.com> <285864121.20050213161830@wanadoo.fr> <420F70C5.60006@makeworld.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: WEIRD: telnet X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Feb 2005 15:38:19 -0000 Chris writes: > I think we're both assuming what the user is doing and the reasons as to > why. Let's just agree that: > > 1. Telnet can use any ports providing the user redirects. > 2. Telnet passes clear text no matter what. > 3. ssh ought to be used to replace Telnet whenever possible. > 4. ssh also can be made to work with any port other then 22 %ssh -p 21 localhost ssh: connect to host localhost.atkielski.com port 21: Connection refused % Telnet uses a protocol that is identical to many other protocols apart from the text of the messages exchanged. SSH requires a specific handshaking sequence that other services on arbitrary ports do not support. So if you want to test the SMTP port, or the POP3 port, or any one of quite a few other ports, you must use telnet. Additionally, there is no security advantage to using any other client in these cases, since these protocols are not intrinsically secured, and any protocols that are secured are unlikely to use the same security protocol as that used by SSH. SSH can be made to work using any port--provided that it is a standard SSH connection to a SSH service listening on the addressed port. That obviously won't be the case if one is testing other services. So the only situation in which telnet can really be replaced by SSH is for a standard login. Since the original poster is trying to connect to port 61, I assume he is using telnet to test the service on that port, and so SSH is irrelevant. -- Anthony