LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   setting up vnc via ssh (https://www.linuxquestions.org/questions/linux-newbie-8/setting-up-vnc-via-ssh-764126/)

blade68uk 10-24-2009 05:10 AM

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

vinaytp 10-24-2009 05:22 AM

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 !!!

blade68uk 10-24-2009 05:38 AM

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

vinaytp 10-24-2009 06:55 AM

Quote:

Originally Posted by blade68uk (Post 3730751)
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..

geek.ksa 10-24-2009 07:02 AM

Quote:

Originally Posted by blade68uk (Post 3730751)
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.

blade68uk 10-25-2009 03:41 AM

hi thanks for all your help guys i got it sorted :)


All times are GMT -5. The time now is 03:49 PM.