Date: 26 Oct 2002 21:59:46 -0400 From: Joe Marcus Clarke <marcus@marcuscom.com> To: Bsd Neophyte <bsdneophyte@yahoo.com> Cc: FreeBSD User Questions List <freebsd-questions@freebsd.org> Subject: Re: problems w/ trying to telnet to my cisco router by tunneling through ssh Message-ID: <1035683986.10389.2.camel@shumai.marcuscom.com> In-Reply-To: <20021027013752.47090.qmail@web20101.mail.yahoo.com> References: <20021027013752.47090.qmail@web20101.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-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:<router's address>:23 <SSH server's address> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1035683986.10389.2.camel>