View Full Version : Remote Desktop/VNC
Aristides
2005-06-28, 05:34 PM CDT
[jesus@localhost ~]$ vncserver
You will require a password to access your desktops.
Password:
Verify:
New 'localhost.localdomain:1 (jesus)' desktop is localhost.localdomain:1
Creating default startup script /home/jesus/.vnc/xstartup
Starting applications specified in /home/jesus/.vnc/xstartup
Log file is /home/jesus/.vnc/localhost.localdomain:1.log
Well, what else I have to do in order to connect into my lappie from another place? :-)
-- Aris V.
pparks1
2005-06-28, 06:01 PM CDT
Should be nothing. From another host, run the vnc client and connect to x.x.x.x:1. Substitute your actual host name for x.x.x.x or an ip address.
Also, be sure that port 5901 is open in your firewall. (iptables on Linux). Easiest way to test;
service iptables stop
VN-Frank
2005-06-28, 06:15 PM CDT
[jesus@localhost ~]$ vncserver
You will require a password to access your desktops.
Password:
Verify:
New 'localhost.localdomain:1 (jesus)' desktop is localhost.localdomain:1
Creating default startup script /home/jesus/.vnc/xstartup
Starting applications specified in /home/jesus/.vnc/xstartup
Log file is /home/jesus/.vnc/localhost.localdomain:1.log
Well, what else I have to do in order to connect into my lappie from another place? :-)
-- Aris V.
Its some time ago I used vnc, so im not exactly sure here...
I believe, there is a config file in /etc/syscoconfig/ for the vncserver,
there you need one line for a dedicated virtual x-server where your vncviewer can connect to.
Take iptables down completely while testing that whole part out, just to avoid you getting lost while figuring out what config is exactly required. Make the iptables adjustments at the end.
Good Luck!
Aristides
2005-06-28, 06:18 PM CDT
Well, change the way via ssh, I changed the port into 23 from 22 and I test it from my pc:
[jesus@localhost ~]$ ssh 62.103.78.27
ssh_exchange_identification: Connection closed by remote host
any ideas? :mad:
VN-Frank
2005-06-28, 06:23 PM CDT
Well, change the way via ssh, I changed the port into 23 from 22 and I test it from my pc:
[jesus@localhost ~]$ ssh 62.103.78.27
ssh_exchange_identification: Connection closed by remote host
any ideas? :mad:
Thats right, VNC only tunnelled over ssh !!!
I still prefer http://www.nomachine.com
VN-Frank
2005-06-28, 06:26 PM CDT
Thats right, VNC only tunnelled over ssh !!!
I still prefer http://www.nomachine.com
sure. if you change the default port of the ssh server, you must alsotelll your client ;-)
Makes sense ?
GOSH. Why dont you get first the base functionality right, and tunnel later ?
Now you start a new topic regarding your sshd_config file.....
kg4cbk
2005-06-28, 06:26 PM CDT
If you have changed the ssh port you need to tell ssh which port to connect to.
ssh -p 23 62.103.78.27
I would recommend you choose a port well above 1024. Port 23 is normally used for telnet.
Aristides
2005-06-28, 06:44 PM CDT
Yes, I changed the way.. let's start about ssh, sorry dudes.
[jesus@localhost ~]$ ssh 62.103.78.27
ssh: connect to host 62.103.78.27 port 1025: Connection refused
any ideas?
kg4cbk
2005-06-28, 06:47 PM CDT
Did you open port 1025 in iptables and forward that port to your system if you are using a hardware firewall?
If you changed the sshd_conf file did you restart sshd so it listens on the new port?
Aristides
2005-06-28, 06:52 PM CDT
Oh, I stopped the iptables, now what? :o
kg4cbk
2005-06-28, 06:57 PM CDT
You can edit the /etc/sysconfig/iptables file directly or use system-config-securitylevel and add the port at the bottom. You will need to specify this port as tcp type.
1025:tcp
You can verfy this is set using:
service iptables status
Aristides
2005-06-28, 06:58 PM CDT
In case that I have stopped the iptables? :) sorry
kg4cbk
2005-06-28, 07:01 PM CDT
You can start stop iptables using:
service iptables stop
service iptables start
Search the forum, there are a couple of other threads detailing how to setup VNC and ssh tunneling.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.