Group,
Posting for advice on tunneling. The Faq mentions it in a few places
but I wasn't able to see how to actually do it, with an nntp server.
I see it involves the -L flag and some manner of naming hosts, thats
about as far as I'm getting.
The situation:
I have ssh 1.2.22 installed on machine1. Machine2 and 3 have ssh-1.2.26
1) A (home) single user dialup machine1 running RedHat-5.2 Linux
2) A remote machine2 on which I have a shell account running
SunOS-5.5.1
3) A remote machine3 that is the nntp server to machine2 running
SunOS-5.5.1
Machine 3 is not accessable by nntp authentication from outside, but
is accessable from the shell account on machine2.
I want to establish an nntp `tunnel' from machine1 through machine2 to
machine3. The aim being to read the nntp server on machine3 from my
home computer machine1.
Having lots of trouble with the command line and not sure how to aim
my newsreader (gnus) at the tunnel either.
Selections from the `man' page and `usage' help"
ssh [-a] [-c idea|blowfish|des|3des|arcfour|tss|none]
[-e escape_char] [-i identity_file] [-l login_name] [-n]
[-k] [-V] [-o option] [-p port] [-q] [-P] [-t] [-v] [-x]
[-C] [-L port:host:hostport] [-R port:host:hostport] host-
name [command]
Usage
-L listen-port:host:port Forward local port to remote address
-R listen-port:host:port Forward remote port to local address
These cause ssh to listen for connections on a port, and
forward them to the other side by connecting to host:port.
I haven't made a successfull connection as yet trying (from (home)
machine1):
ssh -l reader -L 119:host.machine3:119 host.machine2
This does bring up password authentication and login on machine2, but
once logged in what to do? It looks just like a normal login.
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.
Sort of stumped at this point.