On 31 May 1999, in message <[EMAIL PROTECTED]>
Harry Putnam <[EMAIL PROTECTED]> wrote:
| Setting the hosts the other way:
|
| ssh -l reader -L 119:host.machine2:119 host.machine3
|
| produces the error message:
| "Sorry you are not allowed to connect"
|
| But neither way says anything about the home machine I'm running this
| from. I want to get the nntp output from machine 3 to machine 1.
Make that first port above 1024 (I use 2119, myself, for the NNTP forward).
Then... You'll get a normal looking shell on machine2, but...
On machine1 port 2119 an NNTP service (from machine3).
So tell your newsreader to use "machine1:2119" as the NNTP service.
If you dont' want a shell you can:
ssh -l reader -L 2119:the-nntp-host:119 the-remotehost sleep 7200 &
or suchlike.
The other incantation I use is:
tcpio -a 2119 ssh -x zip 'exec nc news.zip.com.au 119'
Tcpio is a local thing which listens on 2119; when a connection arrives
is runs an ssh with stdin/stdout attached to the connection (i.e it
talks toi your newsreader, which is talking to port 2119). The ssh sshs
to my ISP (zip) and there runs the command "nc news.zip.com.au 119",
which is sort of an inverse for tcpio; it connects to the stated
host/port (news.zip.com.au 119, the ISP's news service) and copies
stdin/stdout back and forth.
Like so:
newsreader@myhost
|| <== TCP connection - normal NNTP stuff
tcpio@myhost
|| <== UNIX pipe
ssh@myhost
|| <== TCP connection - normal ssh stuff
sshd@zip
|| <== UNIX pipe
nc@zip
|| <== TCP connection
nntp@isp-news-host
Cheers,
--
Cameron Simpson, DoD#743 [EMAIL PROTECTED] http://www.zip.com.au/~cs/
If you don't know how to do something, you don't know how to do it with a
computer. - David Wittenberg, in Risks Digest 13.70