[SATLUG] VNC Viewer Via SSH :: Assistance
John Pappas
j at jvpappas.net
Mon Jan 1 08:59:28 CST 2007
On 12/19/06, Geoff <geoff at w5omr.shacknet.nu> wrote:
>
> twistedpickles wrote:
> > ssh -p 9058 remopteIP {access remote machine w/ specified port} -L
> > 5958:localhost:5958 {binds & forwards local connection to remote on
> > specified port}
> >
> > Are the above assumptions correct or maybe I don't understand it
> > correctly?
> >
>
> someone else is going to have to step in here and offer some advice.
>
> As I've said, I only use "ssh -pxxxx hostname(or ip address) -l
> username" and it works for me.
>
>
Pickles: assumptions are correct. I use the options before the
user at hostpersonally, so I am not sure if they are order sensitive.
I use the following script to forward various ports that I need through the
SSH "tunnel" to the other side, while popping up an xterm SSH window:
#!/bin/bash
# Port for Remote Squid Proxy Access= 3535
# Port for Remote WWW Access= 8008
# Port for Local WWW Access= 80
# Port for Remote VMConsole Access= 904
# -f = go to background
# -N = No remote command
# -C = Compress
# -X = Forward X11
xterm -e \
ssh -2 -C -X\
#-L localPort:Host:RemotePort
# Note that for direct port bind to SSH Server, use localhost, not remote
server name
# All others are implicit Port:Local -> RemoteHost:RemotePort
-L 3535:localhost:3535 \
-L 8008:asg1:8008 \
-L 8001:asg1:80 \
-L 9004:gsx1:904 \
john at asg1 &
More information about the SATLUG
mailing list