From: Steinar Bang <sb@dod.no>
Subject: Problems using nntp-open-via-rlogin-and-telnet
Date: Tue, 23 Mar 2004 10:10:57 +0100 [thread overview]
Message-ID: <873c80yllq.fsf@dod.no> (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
next reply other threads:[~2004-03-23 9:10 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-23 9:10 Steinar Bang [this message]
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
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=873c80yllq.fsf@dod.no \
--to=sb@dod.no \
/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).