View previous topic :: View next topic |
Author |
Message |
Mr. Hahn Apprentice
Joined: 05 Apr 2003 Posts: 250
|
Posted: Sun Aug 10, 2003 9:55 am Post subject: vnc w/ ssh |
|
|
I'm trying to get vnc working with ssh tunneling. Already got X11 forwarding working.
Taking a big stab in the dark here:
ssh user@ip -X vncviewer
I did that and it works, I got remote desktop access. But I was wondering if this is the proper way to do it?
Also, I installed tightvnc.
btw, is there a way that I could securely connect using a java enabled web browser? I know when I run vncserver, the http server loads too. Hmm would it just use ssl?
confused,
Mr. Hahn |
|
Back to top |
|
|
skunk l33t
Joined: 28 May 2003 Posts: 646 Location: granada, spain
|
Posted: Sun Aug 10, 2003 10:25 am Post subject: Re: vnc w/ ssh |
|
|
Mr. Hahn wrote: | I'm trying to get vnc working with ssh tunneling. Already got X11 forwarding working.
Taking a big stab in the dark here:
ssh user@ip -X vncviewer
I did that and it works, I got remote desktop access. But I was wondering if this is the proper way to do it?
|
nothing wrong with it, however the proper way is:
Quote: |
$ vncviewer -via <ip> localhost
|
Mr. Hahn wrote: |
btw, is there a way that I could securely connect using a java enabled web browser?
|
Quote: |
$ ssh -fL 5801:<ip>:5801 -l <user> -N <ip>
|
then point your browser to http://localhost:5801 |
|
Back to top |
|
|
Mr. Hahn Apprentice
Joined: 05 Apr 2003 Posts: 250
|
Posted: Sun Aug 10, 2003 2:42 pm Post subject: |
|
|
hmm, I thoughtnthere would be some port forwarding stuff going on or somthing.
Also, the way wl the web browser still requires the machine to have ssh. |
|
Back to top |
|
|
skunk l33t
Joined: 28 May 2003 Posts: 646 Location: granada, spain
|
Posted: Sun Aug 10, 2003 3:03 pm Post subject: |
|
|
Mr. Hahn wrote: | hmm, I thoughtnthere would be some port forwarding stuff going on or somthing. |
yes!
Mr. Hahn wrote: | Also, the way wl the web browser still requires the machine to have ssh. |
of course, what's the problem? do you want connect from windows? in this case, i don't know... |
|
Back to top |
|
|
Mr. Hahn Apprentice
Joined: 05 Apr 2003 Posts: 250
|
Posted: Sun Aug 10, 2003 3:23 pm Post subject: |
|
|
yeah, it isn't that crucial, but it would be nice to just connect form any random computer on campus. hmm, I suppose I could use knoppix if the machine doesn't have *nix on it. |
|
Back to top |
|
|
reillyeon n00b
Joined: 26 Mar 2003 Posts: 44 Location: Boston (ish)
|
Posted: Sun Aug 10, 2003 4:15 pm Post subject: |
|
|
For vnc over ssh you should use port forwarding. If you're connecting for a windows box to a linux box you can use port forwarding in putty. then just use the vncviewer as usual just point it to localhost instead of the vnc server. _________________ Linux user #309501 |
|
Back to top |
|
|
Mr. Hahn Apprentice
Joined: 05 Apr 2003 Posts: 250
|
Posted: Sun Aug 10, 2003 4:34 pm Post subject: |
|
|
SO lets say from a liunux box to another linux box. How would it go? I have never used port forwarding, only seen other people doing it, so my understanding of it is sort of weak. |
|
Back to top |
|
|
Mr. Hahn Apprentice
Joined: 05 Apr 2003 Posts: 250
|
Posted: Sun Aug 10, 2003 5:26 pm Post subject: |
|
|
I got it
used this guide:
http://www.uk.research.att.com/vnc/sshvnc.html
But I have one more issue and that is all.
My vnc session and my normal x sessiosn are not syncronised.
My xstartup script in ~/.vnc just has exec fluxbox in it. |
|
Back to top |
|
|
Mr. Hahn Apprentice
Joined: 05 Apr 2003 Posts: 250
|
Posted: Sun Aug 10, 2003 6:55 pm Post subject: |
|
|
anybody know? I basically just want what I do obn the xserver to be the sme as that happens on the vnc server |
|
Back to top |
|
|
|