Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vnc w/ ssh
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Mr. Hahn
Apprentice
Apprentice


Joined: 05 Apr 2003
Posts: 250

PostPosted: Sun Aug 10, 2003 9:55 am    Post subject: vnc w/ ssh Reply with quote

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
View user's profile Send private message
skunk
l33t
l33t


Joined: 28 May 2003
Posts: 646
Location: granada, spain

PostPosted: Sun Aug 10, 2003 10:25 am    Post subject: Re: vnc w/ ssh Reply with quote

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
View user's profile Send private message
Mr. Hahn
Apprentice
Apprentice


Joined: 05 Apr 2003
Posts: 250

PostPosted: Sun Aug 10, 2003 2:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
skunk
l33t
l33t


Joined: 28 May 2003
Posts: 646
Location: granada, spain

PostPosted: Sun Aug 10, 2003 3:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mr. Hahn
Apprentice
Apprentice


Joined: 05 Apr 2003
Posts: 250

PostPosted: Sun Aug 10, 2003 3:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
reillyeon
n00b
n00b


Joined: 26 Mar 2003
Posts: 44
Location: Boston (ish)

PostPosted: Sun Aug 10, 2003 4:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mr. Hahn
Apprentice
Apprentice


Joined: 05 Apr 2003
Posts: 250

PostPosted: Sun Aug 10, 2003 4:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mr. Hahn
Apprentice
Apprentice


Joined: 05 Apr 2003
Posts: 250

PostPosted: Sun Aug 10, 2003 5:26 pm    Post subject: Reply with quote

I got it :D

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
View user's profile Send private message
Mr. Hahn
Apprentice
Apprentice


Joined: 05 Apr 2003
Posts: 250

PostPosted: Sun Aug 10, 2003 6:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum