From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62796 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: nntp-open-via-rlogin-and-telnet doesn't work with OpenSSH_4.3p2 Date: Fri, 14 Apr 2006 19:22:23 +0900 Organization: Emacsen advocacy group Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1145010232 22618 80.91.229.2 (14 Apr 2006 10:23:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 Apr 2006 10:23:52 +0000 (UTC) Original-X-From: ding-owner+m11323@lists.math.uh.edu Fri Apr 14 12:23:50 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FULSu-0006bu-Qq for ding-account@gmane.org; Fri, 14 Apr 2006 12:23:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FULSo-0005oG-00; Fri, 14 Apr 2006 05:23:42 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FULRg-0005o4-00 for ding@lists.math.uh.edu; Fri, 14 Apr 2006 05:22:32 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FULRe-0000Ac-7Y for ding@lists.math.uh.edu; Fri, 14 Apr 2006 05:22:32 -0500 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FULRd-0001fs-00 for ; Fri, 14 Apr 2006 12:22:29 +0200 Original-Received: from [205.234.185.198] (port=42404 helo=mail.jpl.org) by washington.hostforweb.net with esmtpa (Exim 4.52) id 1FULUH-0004hN-SG for ding@gnus.org; Fri, 14 Apr 2006 05:25:14 -0500 Original-To: ding@gnus.org X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110005 (No Gnus v0.5) Emacs/23.0.0 (gnu/linux) Cancel-Lock: sha1:YcDam9LWVke5gXNWaNTlxiWpSas= X-Hashcash: 1:20:060414:ding@gnus.org::ohF2lsL+N11JCojy:00004Mm3 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62796 Archived-At: Hi, (The culprit who increased quimby's INN log is me.) I've upgraded my pc to Fedora Core 5, in which OpenSSH_4.3p2 is contained. And I realized that Gnus cannot connect to foreign news servers using `nntp-open-via-rlogin-and-telnet'. Here's one of servers: (nntp "quimby" (nntp-address "news.gnus.org") (nntp-end-of-line "\n") (nntp-open-connection-function nntp-open-via-rlogin-and-telnet) (nntp-via-address "inter.mediate.host") (nntp-via-rlogin-command "ssh") (nntp-via-rlogin-command-switches ("-C" "-t" "-e" "none"))) It opens an nntp connection to quimby by way of the intermediate host as follows: localhost ---(ssh)--- intermediate host ---(telnet)--- quimby The cause of the problem is that OpenSSH_4.3p2 doesn't pass the escape character "^]" to the telnet process. It works as if telnet to which the `mode character' command is not specified runs. In other words, that version of ssh doesn't pass a single character to telnet immediately. Only data terminated by the LF character are passed. Here is an actual session that I did manually: % ssh -C -t -e none inter.mediate.host 'telnet -8 news.gnus.org 119' Trying 80.91.224.244... Connected to news.gnus.org. Escape character is '^]'. 200 quimby.gnus.org InterNetNews NNRP server INN 2.3.2 ready (posting ok). ^] telnet> (the "telnet> " prompt appeared after I typed "^]" and RET.) It might happen only in FC5, though. To make it work, I changed `nntp-open-via-rlogin-and-telnet' as follows: --- nntp.el~ 2006-01-20 08:28:08 +0000 +++ nntp.el 2006-04-14 10:19:26 +0000 @@ -1877,7 +1877,7 @@ (nntp-wait-for-string "^\r*20[01]") (beginning-of-line) (delete-region (point-min) (point)) - (process-send-string proc "\^]") + (process-send-string proc "\^]\n") (nntp-wait-for-string "^r?telnet") (process-send-string proc "mode character\n") (accept-process-output proc 1) It works. However, it doesn't seem to solve the problem that the nntp connection doesn't exchange characters one by one. So, I don't have a will to install such one to the CVS repository. Instead, I decided to downgrade the version of ssh (though I have another means, e.g., `nntp-open-via-rlogin-and-netcat'). OpenSSH_4.3p1 doesn't work. OpenSSH_4.2p1 doesn't work. OpenSSH_4.1p1 works. OpenSSH_4.0p1 works. OpenSSH_3.9p1 works. I will also report it to the OpenSSH community. But before doing so, does anyone notice I missed something? (I will not be able to respond quickly until Monday. Sorry.)