From owner-freebsd-questions Wed Jul 28 19:57: 5 1999 Delivered-To: freebsd-questions@freebsd.org Received: from w2xo.pgh.pa.us (w2xo.pgh.pa.us [206.210.70.5]) by hub.freebsd.org (Postfix) with ESMTP id 3DD44154A7 for ; Wed, 28 Jul 1999 19:57:02 -0700 (PDT) (envelope-from durham@w2xo.pgh.pa.us) Received: from w2xo.pgh.pa.us (shazam.internal [10.0.0.3]) by w2xo.pgh.pa.us (8.9.2/8.9.1) with ESMTP id CAA01143; Thu, 29 Jul 1999 02:55:10 GMT (envelope-from durham@w2xo.pgh.pa.us) Message-ID: <379FC278.55B7BF4@w2xo.pgh.pa.us> Date: Wed, 28 Jul 1999 22:54:48 -0400 From: "James C. Durham" Organization: dis- X-Mailer: Mozilla 4.61 [en] (X11; U; FreeBSD 3.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: "System Admin." Cc: UNIX-WIZ Mailing list , freebsd-questions@FreeBSD.ORG Subject: Re: redirect telnet References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "System Admin." wrote: > > Hi All, > How can I redirecting telnet from one server to another server? > For example, I have server A and server B; I want user to telnet to server > A and have server A automaticly send that user to server B. How can I do > that? > > TIA ssh2 will do this. Install the ssh2 package on both. Run sshd2 on server A . Then connect with ssh from server B using the "-R" option as in: ssh -R 23:localhost:23 serverA You must be root to forward priviledged ports. You must not have *anything* listening on port 23 on server A or you will get "permission denied". Be sure to run ssh-keygen to generate local root key pairs for both machines. This is a secure connection and works through firewalls. Hope this helps.. -- Jim Durham To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message