LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-24-2009, 06:10 AM   #1
blade68uk
LQ Newbie
 
Registered: Oct 2009
Posts: 9

Rep: Reputation: 0
setting up vnc via ssh


hi there just got a dedicated box running debian

now i need to know how i can install and run vnc via putty

so i can remote view my server

i have installed vnc via the apt-get in putty

and run it it ask me to make a new password

which i did then that where i am stuck

i have tried running vnc from my home windows pc

but it does not connect says failed to connect to then the ip address of my dedicated box

please can some one help this linux and ssh newbie

thanks for any help any one can give me with this

cheers

blade
 
Old 10-24-2009, 06:22 AM   #2
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
Hi blade68uk

Use below link for vncserver setup

also to access vnc locally use the port forwarding technique
Code:
ssh -L 5902:localhost:5901 ip/address/of/vncserver
Above 5901 is port in which vncserver is running..it may be different in your case...

Now you can run vnc by
Code:
vncviewer localhost:5902
Hope this helps...

Cheers !!!

Last edited by vinaytp; 10-24-2009 at 06:23 AM.
 
Old 10-24-2009, 06:38 AM   #3
blade68uk
LQ Newbie
 
Registered: Oct 2009
Posts: 9

Original Poster
Rep: Reputation: 0
thanks for the info m8

but its not working i have tried the guide

and now when i go to vnc which i am getting closer i think

before it just said can not connect now its saying

failed to get server address (local host did you type the host name correctly

please help me am a total newbie at this all

tia

blade
 
Old 10-24-2009, 07:55 AM   #4
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
Quote:
Originally Posted by blade68uk View Post
thanks for the info m8

but its not working i have tried the guide

and now when i go to vnc which i am getting closer i think

before it just said can not connect now its saying

failed to get server address (local host did you type the host name correctly

please help me am a total newbie at this all

tia

blade
The link the i provide you will work surely...Please follow the steps very clearly till the end of the document....

Also what you have tried till now..I mean commands..Please post it as well..
 
Old 10-24-2009, 08:02 AM   #5
geek.ksa
Member
 
Registered: Jan 2009
Location: Dhahran, Saudi Arabia
Distribution: RHEL 5
Posts: 42

Rep: Reputation: 17
Quote:
Originally Posted by blade68uk View Post
thanks for the info m8
failed to get server address (local host did you type the host name correctly
First make sure that the VNC server is running (#pgrep vncserver)and try the IP address (not the hostname) of the VNC server... probably you don't have the hostname of your server in your local name resolver (/etc/hosts) or DNS.

By the way, did you set up a screen number?

why you try to connect to the vncserver, use following connection string: IP_Address:screen_no

where screen_no is the screen number for the VNC session, which I assume you provided when running the server OR vncserver defaulted to :1 (screen 1).

Hope this helps.
 
Old 10-25-2009, 04:41 AM   #6
blade68uk
LQ Newbie
 
Registered: Oct 2009
Posts: 9

Original Poster
Rep: Reputation: 0
hi thanks for all your help guys i got it sorted
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
which is easy on bandwidth : ssh -Y , rlogin and setting DISPLAY, XDMCP ,VNC amolgupta Linux - Software 3 07-22-2009 03:15 PM
VNC Over SSH | Linux laptop -> Linux SSH Server -> Windows VNC Server jakestaby Linux - Networking 3 01-28-2009 03:33 PM
Setting up SSH and VNC to run on boot SuperDude123 Linux - Newbie 12 11-03-2008 02:43 PM
Setting up VNC only using SSH JohnyK Linux - Newbie 1 12-01-2007 09:55 AM
setting up ssh tunnel for vnc jr0 Linux - Networking 3 10-22-2005 12:38 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration