vnc via ssh port forwarding

Robert Parusel rp "at"
Tue, 12 Mar 2002 11:25:11 +0000


I'm trying to connect to a vncserver via ssh. To do that 
i start ssh -L ... on pc9

pc9:/tftpboot/P2001 # ssh -L 5902:p2001:5901 p2001
root "at" p2001's password: "mypassword"

I get a prompt on p2001

Now I start vncviewer

rp "at" pc9:~ > vncviewer localhost:2
vncviewer: VNC server closed connection

Now I get : 
bash-2.05# channel 3: open failed: administratively prohibited: open failed
on the prompt of p2001

and in /var/log/messages on p2001:
Mar 12 11:47:18 192 auth.err sshd[207]: error: connect_to port 
5901: Invalid argument
Mar 12 11:47:18 192 auth.err sshd[207]: error: connect_to p2001 port 5901: 

There is no firewall installed nor ipsec, ipchains or so.
ssh and vnc are running well as single tasks.

Can anyone give me a hint what's going wrong! I'm searching now for a few 
days without any success.

Thank's a lot

Gesellschaft f|r innovative Datentechnik mbH
Werner-von-Siemens-Strasse 7
64625 Bensheim

R.Parusel / Tel: 06251/8405-460 /   mailto:rp "at"
To unsubscribe, mail majordomo "at" with the line:
'unsubscribe vnc-list' in the message BODY
See also: