From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83750 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.gnus.general Subject: Re: Coaching to ssh port forward an NNTP connection Date: Tue, 27 Aug 2013 18:29:36 -0400 Organization: Still searching... Message-ID: <87vc2qlqcv.fsf@newsguy.com> References: <7kzjs819br.fsf@callisto.jtan.com> <87a9k3ha0j.fsf@mmer.org> <877gf7m5q8.fsf@newsguy.com> <87r4dfxdjm.wl%hskuhra@eumx.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1377642782 30923 80.91.229.3 (27 Aug 2013 22:33:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Aug 2013 22:33:02 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32006=ding+2Daccount=gmane.org@lists.math.uh.edu Wed Aug 28 00:33:05 2013 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VERot-0005Wd-09 for ding-account@gmane.org; Wed, 28 Aug 2013 00:33:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1VERos-0002Ip-3T for ding-account@gmane.org; Tue, 27 Aug 2013 17:33:02 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1VERop-0002Ig-Ka for ding@lists.math.uh.edu; Tue, 27 Aug 2013 17:32:59 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1VERon-0007g9-N8 for ding@lists.math.uh.edu; Tue, 27 Aug 2013 17:32:59 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1VERol-0000lI-N6 for ding@gnus.org; Wed, 28 Aug 2013 00:32:55 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VERol-0005RO-K5 for ding@gnus.org; Wed, 28 Aug 2013 00:32:55 +0200 Original-Received: from z65-50-57-227.ips.direcpath.com ([65.50.57.227]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Aug 2013 00:32:55 +0200 Original-Received: from reader by z65-50-57-227.ips.direcpath.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Aug 2013 00:32:55 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 68 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: z65-50-57-227.ips.direcpath.com User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.0.92 (gnu/linux) Cancel-Lock: sha1:/YoCGa+DN8PCU9tscRW0POiinlg= X-Spam-Score: -4.4 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83750 Archived-At: "Herbert J. Skuhra" writes: > On Tue, 27 Aug 2013 12:57:35 -0400 > Harry Putnam wrote: > >> Abramov Aleksey writes: >> >> >> [...] >> >> >> Trouble is I cannot remember the first thing about how it was done or >> >> find any notes I may have kept... this has been 10 or more yrs ago. >> >> >> >> Can anyone give an outline of how something like that might be done? >> >> >> > >> > To create an ssh tunnel is pretty easy. >> > >> > # ssh -ANf -L5119:news.gmane.org:119 router.example.com >> > >> > # telnet localhost 5119 >> > Trying 127.0.0.1... >> > Connected to localhost. >> > Escape character is '^]'. >> > 200 news.gmane.org InterNetNews NNRP server INN 2.5.1 ready (posting ok) >> > Connection closed by foreign host. >> > >> > There could be only one problem, TCP forwarding shouldn't be disabled in >> > sshd which you are connecting to. >> > >> > In my case the interesting thing is that, there is a http proxy before >> > router. =) >> >> In the command line you show above, what role does router.example.com >> play? Are -L and router.example.com the same host > > % man ssh > Have you tried? Had I found something I understood there I would not have posted. I have a remote shell account that I can use as the gateway and in fact have been able to successfully set that up for http: ssh -L 8080:www.google.com:80 some.host.com <==remote shell account When I run the command it logs me into my remote shell account Then from a different xterm: lynx localhost:8080 connects to google thru my remote shell account. For gnus I tried: ssh -L 5119:news.gmane.org:119 some.host.com However when I attempt that with gnus, I'm told: >>> (error localhost:5119/nntp node name or service name not known) nntp (localhost:5119) open error: '>>> (error localhost:5119/nntp node name or service name not known)' I wasn't sure what to put in gnus but I vaguely remember doing something like: (setq gnus-select-method '(nntp "localhost:5119")) But that is what got the error above. Telnet can see localhost 5119 and show new.gmane.org is there. So maybe its just a matter of getting the right syntax in gnus.