Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* nntp-open-via-rlogin-and-telnet - "Denied server"
@ 2005-11-04 19:37 Mark Carroll
  2005-11-05  2:28 ` Mark Carroll
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Carroll @ 2005-11-04 19:37 UTC (permalink / raw)


ssh -C -t -e none carroll@stdsun.cse.ohio-state.edu telnet -8 news.cis.ohio-state.edu nntp
connects me to the NNTP server and I can go on to type "mode reader"
at it, "group <whatever>", etc. to look at articles in newsgroups
without having to type a password. I'm using authentication based on
authorized asymmetric keys loaded into ssh-agent.

However, if I try Gnus v5.10.7 under Debian GNU/Linux, in an emacs
started from the same console I did the above ssh from, I can't
connect to the server. It asks things like,

Unable to open nntp:osu-cse, go offline? 

and the *Messages* buffer says things like,

Opening nntp server on osu-cse...
Denied server
Opening nntp server on osu-cse...failed
Opening nntp server on osu-cse...
Denied server
Opening nntp server on osu-cse...failed

The total of my .gnus.el is:

(setq gnus-select-method '(nntp "osu-cse"
             (nntp-address "news.cis.ohio-state.edu")
             (nntp-via-user-name "carroll")
             (nntp-via-address "stdsun.cse.ohio-state.edu")
             (nntp-via-rlogin-command "ssh")
             (nntp-end-of-line "\n")
             (nntp-via-rlogin-command-switches '("-C" "-t" "-e" "none"))
             (nntp-open-connection-function nntp-open-via-rlogin-and-telnet)))

(setq user-mail-address "mark@ixod.org")

Does anyone have any ideas or suggestions? What might I be doing wrong?

-- Mark


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: nntp-open-via-rlogin-and-telnet - "Denied server"
  2005-11-04 19:37 nntp-open-via-rlogin-and-telnet - "Denied server" Mark Carroll
@ 2005-11-05  2:28 ` Mark Carroll
  2005-11-08 21:23   ` Reiner Steib
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Carroll @ 2005-11-05  2:28 UTC (permalink / raw)


In article <P5f*x4U2q@news.chiark.greenend.org.uk>,
Mark Carroll  <markc@chiark.greenend.org.uk> wrote:
(snip)
>             (nntp-via-rlogin-command-switches '("-C" "-t" "-e" "none"))
(snip)

Solved it! That quote shouldn't be there. The 6.2.1.2 Indirect
Functions section of the Gnus Manual had quotes around the string that
confused me. (-:

-- Mark


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: nntp-open-via-rlogin-and-telnet - "Denied server"
  2005-11-05  2:28 ` Mark Carroll
@ 2005-11-08 21:23   ` Reiner Steib
  0 siblings, 0 replies; 3+ messages in thread
From: Reiner Steib @ 2005-11-08 21:23 UTC (permalink / raw)


On Sat, Nov 05 2005, Mark Carroll wrote:

> In article <P5f*x4U2q@news.chiark.greenend.org.uk>,
> Mark Carroll  <markc@chiark.greenend.org.uk> wrote:
> (snip)
>>             (nntp-via-rlogin-command-switches '("-C" "-t" "-e" "none"))
> (snip)
>
> Solved it! That quote shouldn't be there. The 6.2.1.2 Indirect
> Functions section of the Gnus Manual had quotes around the string that
> confused me. (-:

Well, the quotes are printed around almost all literal examples, see 
(info "(texinfo)samp").

But maybe we should add an example with ssh to (info "(gnus)Example
Methods")?

--8<---------------cut here---------------start------------->8---
Here's an example for an indirect connection:
@lisp
(setq gnus-select-method
      '(nntp "indirect"
             (nntp-open-connection-function nntp-open-via-rlogin-and-telnet)
             (nntp-via-address "intermediate.host.example")
	     (nntp-address "the.real.nntp.host")
             (nntp-via-rlogin-command "ssh")
             (nntp-via-rlogin-command-switches ("-C" "-t" "-e" "none"))
             (nntp-end-of-line "\n")))
@end lisp
--8<---------------cut here---------------end--------------->8---

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-11-08 21:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-04 19:37 nntp-open-via-rlogin-and-telnet - "Denied server" Mark Carroll
2005-11-05  2:28 ` Mark Carroll
2005-11-08 21:23   ` Reiner Steib

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).