QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 552|回复: 2

请教关于VNC和SSH

[复制链接]
发表于 2003-6-13 05:19:21 | 显示全部楼层 |阅读模式
我装的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成功的介绍一下如何操作,谢谢.
发表于 2003-6-13 08:41:57 | 显示全部楼层
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客户端,按说明操作!

祝你成功!!!
回复

使用道具 举报

发表于 2003-6-13 08:43:42 | 显示全部楼层
why use ssh with vnc server? why not use vncviewer? for encryption?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-10-2 03:33 , Processed in 0.038728 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表