|
发表于 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客户端,按说明操作!
祝你成功!!! |
|