From owner-freebsd-questions Sat Oct 26 18:59:56 2002 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 E3BDA37B401 for ; Sat, 26 Oct 2002 18:59:54 -0700 (PDT) Received: from creme-brulee.marcuscom.com (rdu57-17-158.nc.rr.com [66.57.17.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A33E43E4A for ; Sat, 26 Oct 2002 18:59:54 -0700 (PDT) (envelope-from marcus@marcuscom.com) Received: from shumai.marcuscom.com (shumai.marcuscom.com [192.168.1.4]) by creme-brulee.marcuscom.com (8.12.6/8.12.6) with ESMTP id g9R1ws01097394; Sat, 26 Oct 2002 21:58:54 -0400 (EDT) (envelope-from marcus@marcuscom.com) Subject: Re: problems w/ trying to telnet to my cisco router by tunneling through ssh From: Joe Marcus Clarke To: Bsd Neophyte Cc: FreeBSD User Questions List In-Reply-To: <20021027013752.47090.qmail@web20101.mail.yahoo.com> References: <20021027013752.47090.qmail@web20101.mail.yahoo.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-PSxEWS50+h/ZE2/iTzoT" X-Mailer: Ximian Evolution 1.0.8 Date: 26 Oct 2002 21:59:46 -0400 Message-Id: <1035683986.10389.2.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Spam-Status: No, hits=-7.9 required=5.0 tests=AWL,IN_REP_TO,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES, SPAM_PHRASE_03_05 version=2.41 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 --=-PSxEWS50+h/ZE2/iTzoT Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sat, 2002-10-26 at 21:37, Bsd Neophyte wrote: >=20 > i was looking at the handbook section on ssh tunneling. to try it out i > figured i'd try to connect to my 806. >=20 > i entered the following command: >=20 > ssh -2 -N -f -L 5023:localhost:23 (router's ip address) >=20 > and I received this error message: >=20 > ssh: connect to address (router's ip address) port 22: Connection refused >=20 > i thought tunneling like this took port 22 out of the equation? Well, with the above command, you're expecting the router to accept SSH requests. Looks like the router doesn't support that. If you want tunneling to work, the endpoint of this SSH session should be another FreeBSD box, for example. Then, you command line _should_ be: ssh -2 -N -f -L 5023::23 Then, telnet to localhost 5203, and you should get your router login prompt. Joe --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-PSxEWS50+h/ZE2/iTzoT Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQA9u0iRb2iPiv4Uz4cRAt1OAJ91UxtVhGiUaTP0AI2mQ+ckoFscVwCfYXVt IHFnF2z+qd+0UorHjQkAshE= =kjxa -----END PGP SIGNATURE----- --=-PSxEWS50+h/ZE2/iTzoT-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message