Gnus development mailing list
 help / color / mirror / Atom feed
* Problems using nntp-open-via-rlogin-and-telnet
@ 2004-03-23  9:10 Steinar Bang
  2004-03-23 11:19 ` Katsumi Yamaoka
  0 siblings, 1 reply; 17+ messages in thread
From: Steinar Bang @ 2004-03-23  9:10 UTC (permalink / raw)


Platform: Intel Pentium M, debian sarge (testing/unstable),
	  GNU Emacs 21.3.1 (i386-pc-linux-gnu, X toolkit) of 2003-10-31 on raven, modified by Debian
	  No Gnus v0.2 (CVS gnus updated on March 19)

I have the following entry in my ~/.gnus.el:

(setq gnus-select-method
    '(nntp "news.chello.no"
           (nntp-address "news.chello.no")
           (nntp-via-address "somemachine.dyndns.org")
           (nntp-via-user-name "someuser")
           (nntp-via-rlogin-command "ssh")
           (nntp-via-rlogin-command-switches ("-x" "-t"))
	   (nntp-end-of-line "\n")
	   (nntp-telnet-command "nc")
           (nntp-open-connection-function nntp-open-via-rlogin-and-telnet)))

But this setting doesn't work.  Trying to use "nc", it immediately
fails.  Trying to use "telnet", it hangs until I press `C-g', and then
it fails in pretty much the same way as with "nc".

More details:

With the nntp-telnet-command setting above, ie. using "nc", the
following text is written to the minibuffer:
  Unable to open nntp:news.chello.no, go offline? (y or n)
when I press `y', I get the message
  nntp (news.chello.no) open error: ''.  Continue? (y or n)
when I press `y' on that, Gnus proceeds with gmane and an nnimap
server. 

If I do a "ps axu | grep nc" on the via machine after this, I see no
process running.

Without the nntp-telnet-command setting, ie. using "telnet", Gnus just
hangs until I press `C-g'.

If I do a "ps axu | grep telnet" on the via machine, I see a line like
this: 
  someuser        8504  0.1  0.9  2852 1240 pts/5    S    09:56   0:00 telnet -8

When I press `C-g', I get the following message in the minibuffer:
 Please answer y or n. Unable to open nntp:news.chello.no, go offline? (y or n)
when I press `y', I get the message
  nntp (news.chello.no) open error: ''.  Continue? (y or n)
when I press `y' on that, Gnus proceeds with gmane and an nnimap
server.

The "telnet -8" process is still running on the via machine after this.

The text written to *Messages* is the same for both "nc" and "telnet":
 Reading /home/someuser/.newsrc.eld...
 Opening nntp server on news.chello.no...
 Denied server
 Opening nntp server on news.chello.no...failed

The " *nntpd*" buffer contains the following text:
211 6 1 6 mail.misc

(I have an nnml group called mail.misc to handle mail sent locally on
this machine, but I have no idea of why this ends up in the *nntpd*
buffer) 

I have set public keys for the user in the authorized_keys file on the
via machine, so that I can run commands without any login prompt.

Trying telnet manually:
 $ ssh -x -t somemachine.dyndns.org telnet -8 news.chello.no nntp
 Trying 212.83.64.229...
 Connected to amstwist00.chello.com.
 Escape character is '^]'.
 200 Welcome to the Chello Norway News Service (Twister v1.2.0)
I type `quit', and get
 205 GoodBye
 Connection closed by foreign host.
 Connection to somemachine.dyndns.org closed.

Trying nc manually:
 $ ssh -x -t somemachine.dyndns.org nc news.chello.no nntp
 200 Welcome to the Chello Norway News Service (Twister v1.2.0)
but here nothing I type seems to get to the NNTP server, so I can't do
type `quit' to end the session.

All help appreciated!

Thanx!


- Steinar




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

end of thread, other threads:[~2004-05-14 19:55 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-23  9:10 Problems using nntp-open-via-rlogin-and-telnet Steinar Bang
2004-03-23 11:19 ` Katsumi Yamaoka
2004-03-23 12:28   ` Steinar Bang
2004-04-10 20:24     ` How to debug nntp-open-via-rlogin-and-telnet? Steinar Bang
2004-04-10 20:32   ` netcat supported in nntp-open-via-rlogin-and-telnet? (Was: Problems using nntp-open-via-rlogin-and-telnet) Steinar Bang
2004-04-11  1:03     ` netcat supported in nntp-open-via-rlogin-and-telnet? Katsumi Yamaoka
2004-04-11 22:31       ` Steinar Bang
2004-04-12  7:29         ` Katsumi Yamaoka
2004-04-12  9:04           ` Katsumi Yamaoka
2004-04-13 10:28           ` Steinar Bang
2004-04-13 10:47             ` Katsumi Yamaoka
2004-04-13 20:34               ` Steinar Bang
2004-04-13 22:48                 ` Katsumi Yamaoka
2004-04-13 23:10                   ` Katsumi Yamaoka
2004-04-17 20:14                   ` Steinar Bang
2004-04-22 20:08                     ` Steinar Bang
2004-05-14 19:55           ` Steinar Bang

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