* somewhat urgent: puzzled about using ssh for foreigh group
@ 1997-12-22 22:12 Randal Schwartz
1997-12-22 22:29 ` Felix Lee
0 siblings, 1 reply; 6+ messages in thread
From: Randal Schwartz @ 1997-12-22 22:12 UTC (permalink / raw)
OK, I followed the instructions as faithfully as I could:
1) went to the server buffer
2) created with "a" a new server "news2.teleport.com"
3) used "e" to edit parameters as follows:
(nntp "news2.teleport.com"
(nntp-address "user1.teleport.com")
(nntp-open-connection-function nntp-open-rlogin)
(nntp-rlogin-program "ssh")
(nntp-rlogin-parameters
'("-x" "-C" "telnet" "-8" "news2" "nntp")))
4) I still get "denied" on opening, even though:
ssh user1.teleport.com -x -C telnet -8 news2 nntp
works just fine from the prompt. Where do I look next?
And this is urgent. I just found out today that on *thursday* this
ISP will be cutting over from news1.teleport.com to news2.teleport.com
with *different* article numbers, so I need to do one of those funny
resync moving things.
--
Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying
Email: <merlyn@stonehenge.com> Snail: (Call) PGP-Key: (finger merlyn@ora.com)
Web: <A HREF="http://www.stonehenge.com/merlyn/">My Home Page!</A>
Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: somewhat urgent: puzzled about using ssh for foreigh group
1997-12-22 22:12 somewhat urgent: puzzled about using ssh for foreigh group Randal Schwartz
@ 1997-12-22 22:29 ` Felix Lee
1997-12-22 22:38 ` Randal Schwartz
0 siblings, 1 reply; 6+ messages in thread
From: Felix Lee @ 1997-12-22 22:29 UTC (permalink / raw)
Cc: ding
> X-Mailer: Quassia Gnus v0.13/Emacs 20.2
if it's what I think it is, either fetch a newer qgnus,
or in function nntp-open-rlogin in nntp.el,
change the
(nntp-wait-for-string "^\r*200")
to
(nntp-wait-for-string "^\r*20[01]")
since teleport answers with "hi, no posting".
--
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: somewhat urgent: puzzled about using ssh for foreigh group
1997-12-22 22:29 ` Felix Lee
@ 1997-12-22 22:38 ` Randal Schwartz
1997-12-22 23:22 ` Felix Lee
0 siblings, 1 reply; 6+ messages in thread
From: Randal Schwartz @ 1997-12-22 22:38 UTC (permalink / raw)
Cc: ding
>>>>> "Felix" == Felix Lee <flee@teleport.com> writes:
>> X-Mailer: Quassia Gnus v0.13/Emacs 20.2
Felix> if it's what I think it is, either fetch a newer qgnus,
Felix> or in function nntp-open-rlogin in nntp.el,
Felix> change the
Felix> (nntp-wait-for-string "^\r*200")
Felix> to
Felix> (nntp-wait-for-string "^\r*20[01]")
Felix> since teleport answers with "hi, no posting".
That's not it. In fact, it comes back *waaay* too fast for it to even
be firing up ssh. Where can I stick some debugging on this?
Felix, It even fails when I try news1.teleport.com, which *does* allow
posting. I'm reading offsite using the username/password
authentication instead, but news2 doesn't allow that yet.
Argh.
--
Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying
Email: <merlyn@stonehenge.com> Snail: (Call) PGP-Key: (finger merlyn@ora.com)
Web: <A HREF="http://www.stonehenge.com/merlyn/">My Home Page!</A>
Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: somewhat urgent: puzzled about using ssh for foreigh group
1997-12-22 22:38 ` Randal Schwartz
@ 1997-12-22 23:22 ` Felix Lee
1997-12-22 23:33 ` Randal Schwartz
0 siblings, 1 reply; 6+ messages in thread
From: Felix Lee @ 1997-12-22 23:22 UTC (permalink / raw)
Cc: ding
ok, better answer. (which I actually tested :)
1. delete the ' in the parameter below:
(nntp-rlogin-parameters
'("-x" "-C" "telnet" "-8" "news2" "nntp")))
2. apply the patch below to nntp.el.
diagnosis:
nntp-open-rlogin pastes all the nntp-rlogin-parameters
into a single arg, which ssh barfs on. this patch passes
the strings as separate args, which does an equivalent
thing without loss of generality.
(there's a small backward compatibility problem, but it
shouldn't affect anyone unless someone tries to use a
really weird program instead of rlogin or ssh, and the
workaround is pretty simple.)
*** nntp.el 1997/12/22 23:13:44 1.1
--- nntp.el 1997/12/22 23:17:03
***************
*** 1103,1117 ****
(defun nntp-open-rlogin (buffer)
"Open a connection to SERVER using rsh."
(let ((proc (if nntp-rlogin-user-name
! (start-process
"nntpd" buffer nntp-rlogin-program
nntp-address "-l" nntp-rlogin-user-name
! (mapconcat 'identity
! nntp-rlogin-parameters " "))
! (start-process
"nntpd" buffer nntp-rlogin-program nntp-address
! (mapconcat 'identity
! nntp-rlogin-parameters " ")))))
(set-buffer buffer)
(nntp-wait-for-string "^\r*20[01]")
(beginning-of-line)
--- 1103,1115 ----
(defun nntp-open-rlogin (buffer)
"Open a connection to SERVER using rsh."
(let ((proc (if nntp-rlogin-user-name
! (apply 'start-process
"nntpd" buffer nntp-rlogin-program
nntp-address "-l" nntp-rlogin-user-name
! nntp-rlogin-parameters)
! (apply 'start-process
"nntpd" buffer nntp-rlogin-program nntp-address
! nntp-rlogin-parameters))))
(set-buffer buffer)
(nntp-wait-for-string "^\r*20[01]")
(beginning-of-line)
--
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: somewhat urgent: puzzled about using ssh for foreigh group
1997-12-22 23:22 ` Felix Lee
@ 1997-12-22 23:33 ` Randal Schwartz
1997-12-22 23:42 ` Lars Balker Rasmussen
0 siblings, 1 reply; 6+ messages in thread
From: Randal Schwartz @ 1997-12-22 23:33 UTC (permalink / raw)
Cc: ding
>>>>> "Felix" == Felix Lee <flee@teleport.com> writes:
Felix> ok, better answer. (which I actually tested :)
Felix> 1. delete the ' in the parameter below:
Felix> (nntp-rlogin-parameters
Felix> '("-x" "-C" "telnet" "-8" "news2" "nntp")))
Felix> 2. apply the patch below to nntp.el.
bingo! that did it!
Now to figure out whether writing a Perl script to do the message-id
remapping will be faster or slower than letting a bunch of gnu-lisp
code chunk through this.
--
Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying
Email: <merlyn@stonehenge.com> Snail: (Call) PGP-Key: (finger merlyn@ora.com)
Web: <A HREF="http://www.stonehenge.com/merlyn/">My Home Page!</A>
Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: somewhat urgent: puzzled about using ssh for foreigh group
1997-12-22 23:33 ` Randal Schwartz
@ 1997-12-22 23:42 ` Lars Balker Rasmussen
0 siblings, 0 replies; 6+ messages in thread
From: Lars Balker Rasmussen @ 1997-12-22 23:42 UTC (permalink / raw)
Randal Schwartz <merlyn@stonehenge.com> writes:
> Now to figure out whether writing a Perl script to do the message-id
> remapping will be faster or slower than letting a bunch of gnu-lisp
> code chunk through this.
I know which would be faster for me to write...
Lars, who spent the better part of Sunday converting his Perl
cancel-spam script to elisp.
--
Lars Balker Rasmussen, Software Engineer, Mjolner Informatics ApS
lbr@mjolner.dk
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1997-12-22 23:42 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-22 22:12 somewhat urgent: puzzled about using ssh for foreigh group Randal Schwartz
1997-12-22 22:29 ` Felix Lee
1997-12-22 22:38 ` Randal Schwartz
1997-12-22 23:22 ` Felix Lee
1997-12-22 23:33 ` Randal Schwartz
1997-12-22 23:42 ` Lars Balker Rasmussen
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).