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
[-- Attachment #1 --] On Sat, 2002-10-26 at 21:37, Bsd Neophyte wrote: > > i was looking at the handbook section on ssh tunneling. to try it out i > figured i'd try to connect to my 806. > > i entered the following command: > > ssh -2 -N -f -L 5023:localhost:23 (router's ip address) > > and I received this error message: > > ssh: connect to address (router's ip address) port 22: Connection refused > > 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 -- PGP Key : http://www.marcuscom.com/pgp.asc [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQA9u0iRb2iPiv4Uz4cRAt1OAJ91UxtVhGiUaTP0AI2mQ+ckoFscVwCfYXVt IHFnF2z+qd+0UorHjQkAshE= =kjxa -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1035683986.10389.2.camel>
