LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   vnc over ssh on port 1352--> wrong authentication...? (https://www.linuxquestions.org/questions/linux-networking-3/vnc-over-ssh-on-port-1352-wrong-authentication-132415/)

pablovschby 01-07-2004 11:19 AM

vnc over ssh on port 1352--> wrong authentication...?
 
Hallo

I log in to my router1 and loop me back port 5900. On "router1" is a vncserver running well on Display 2. It runs well unencrypted. I do this:
Code:

ssh -p 1352 -L 5900:router1:5900 testuser@router1
after i entered my pwd, I'm in. But if I start now "vncviewer" it messages me that:
Code:

X11 connection rejected because of wrong authentication.
X connection to localhost:10.0 broken (explicit kill or server shutdown).

the same effect with:
Code:

xhost localhost:2
so does my router1, if I choose to loop me back port 5902 (cause it's running on display2...just a try)
Code:

ssh -p 1352 -L 5902:router1:5902 testuser@router1
I researched the internet and followed this advice:
Code:

DISPLAY=localhost:2
        export DISPLAY

now my router1's coming up with this error:
Code:

Xlib: connection to "localhost:2.0" refused by server
Xlib: Client is not authorized to connect to Server
Error: Can't open display: localhost:2

all neede Paths are set in the $PATH-variable...and my knowledge... according to that...hmmm
please help
thanks for advises...
regards
pablo
p.s.: I am aware that my ssh-service's running on port 1352 (lotus), but that didn't affect looping or x-forwarding until now. Does it affect maybe now this connection? I don't think...why should it?


All times are GMT -5. The time now is 04:24 AM.