From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/18388 Path: main.gmane.org!not-for-mail From: Karl Kleinpaste Newsgroups: gmane.emacs.gnus.general Subject: Re: Connecting through rlogin (ssh) Date: 04 Nov 1998 11:13:18 -500 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035156920 5904 80.91.224.250 (20 Oct 2002 23:35:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:35:20 +0000 (UTC) Keywords: port,ssh,server,host,problem,news,need,localhost Return-Path: Original-Received: from fisher.math.uh.edu (fisher.math.uh.edu [129.7.128.35]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id LAA16864 for ; Wed, 4 Nov 1998 11:14:45 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by fisher.math.uh.edu (8.9.1/8.9.1) with ESMTP id KAB05599; Wed, 4 Nov 1998 10:14:23 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 04 Nov 1998 10:14:15 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [209.195.19.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id KAA22903 for ; Wed, 4 Nov 1998 10:14:04 -0600 (CST) Original-Received: from pocari-sweat.jprc.com (POCARI-SWEAT.JPRC.COM [207.86.147.217]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id LAA16822 for ; Wed, 4 Nov 1998 11:13:56 -0500 (EST) Original-Received: (from karl@localhost) by pocari-sweat.jprc.com (8.8.7/8.8.7) id LAA30967; Wed, 4 Nov 1998 11:13:19 -0500 Original-To: ding@gnus.org X-Face: "5(T0tZd{6}pd~YzBG8O/*EW,.]6]@`m^e;fv65W^Y&=d"M\1H}>T~4_.kcDD.O~y3k)a6h R;Nmi>9|>Nm${2IpM0^RcUEa\jcq?KOP)C&~x51l~zCHTulL^_T|u0I^kB'z@]{`2YjQu In-Reply-To: Andy Eskilsson's message of "04 Nov 1998 12:36:10 +0100" Original-Lines: 30 User-Agent: Gnus/5.07004 (Pterodactyl Gnus v0.40) XEmacs/20.4 (Emerald) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:18388 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:18388 I think this is a type of problem that should be solved outside Gnus, because it's not a Gnus-specific sort of problem. Fortunately, ssh already provides exactly what you need: ssh -q -f -x -L8080:real.news.server:119 your.login.host sleep 100000000 In this contrived example, the result is that connections to "localhost" at port 8080 will be sent to "your.login.host," where you have normal shell access, whereupon the server side of ssh will forward the connection to "real.news.server" on port 119. Add "-g" to make the forwarded port on your own system into a promiscuous one, accessible by any other host. By default, port forwarding works on "localhost" only. Beware of this becoming known and accessible to outsiders, or you will become very...popular. Once you've set up the forwarded port with ssh, then all you need in your select method is: (nntp "localhost" (nntp-port-number 8080)) We use this at JPRC to support a suck-feed into our news server from CMU CS. (And I don't admit to which port or host have the promiscuous port for the aforementioned "popularity" reason.) That's why I think this is a problem to be solved outside Gnus, because I need it both for direct Gnus access to certain groups available at CMU CS, while simultaneously wanting the identical capability for the sake of our newsfeed. One ssh invocation solves both problems. --karl