请教关于VNC和SSH
我装的RedHat LINUX 7.2服务器自带的VNCserver,启动VNCserver以后VNCserver listen在5901端口,我用工作用机XP的VNCviewer连接正常,但是我想通过SSH来连接VNC,不知如何操作.http://www.uk.research.att.com/vnc/sshvnc.html
这是VNC网站的介绍,但是我看不明白.....大家有谁用SSH连接VNC成功的介绍一下如何操作,谢谢. So, imagine you had a VNC server running as display :1 on machine snoopy, and you wanted a secure connection to it from your local machine.You could start the ssh session using:
ssh -L 5902:localhost:5901 snoopy
and any references to display :2 on your local machine would actually connect to display :1 on snoopy.
Note that the above SSH command-line is deliberately meant to accept incoming connections only from the local machine. This means that to use the SSH connection that we have just set up, we must connect to it from the same machine, using the special name 'localhost', rather than using the machine's own unique name.
So instead of running a vncviewer:
vncviewer snoopy:1
you could run:
vncviewer localhost:2
注意以上内容:
简单的说,请按以下顺序操作:
1.在你的RH7.2上启动VNCserver(假设在端口5901,且你的hostname为snoopy)
2.在你的RH7.2上主机上执行
ssh -L 5902:localhost:5901 snoopy
3.在你的RH7.2上上测试
vncvewer snoopy:2
4.下载ssh Windows客户端,按说明操作!
祝你成功!!! why use ssh with vnc server? why not use vncviewer? for encryption?
页:
[1]