Gnus development mailing list
 help / color / mirror / Atom feed
From: Harry Putnam <reader@newsguy.com>
To: ding@gnus.org
Subject: Re: Coaching to ssh port forward an NNTP connection
Date: Tue, 27 Aug 2013 18:29:36 -0400	[thread overview]
Message-ID: <87vc2qlqcv.fsf@newsguy.com> (raw)
In-Reply-To: <87r4dfxdjm.wl%hskuhra@eumx.net>

"Herbert J. Skuhra" <hskuhra@eumx.net> writes:

> On Tue, 27 Aug 2013 12:57:35 -0400
> Harry Putnam wrote:
>
>> Abramov Aleksey <levenson@mmer.org> 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.




  reply	other threads:[~2013-08-27 22:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-23 19:44 Harry Putnam
2013-08-27  7:23 ` Abramov Aleksey
2013-08-27 16:57   ` Harry Putnam
2013-08-27 17:13     ` Herbert J. Skuhra
2013-08-27 22:29       ` Harry Putnam [this message]
2013-08-27 23:03         ` Adam Sjøgren
2013-09-17 17:00           ` Harry Putnam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vc2qlqcv.fsf@newsguy.com \
    --to=reader@newsguy.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).