免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7209 | 回复: 7
打印 上一主题 下一主题

在家里用 eXceed 通过 ssh 连接到公司的 SUN 上 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-03-29 03:14 |只看该作者 |倒序浏览
在家里连接公司的 SUN,只有通过 SSH。其它的诸如 telnet, ftp,  DOOR 都没有。做一般工作,在家可以,但要是 恢复文档,必须在 X-windows 启动 Veritas. 以前,总得跑一趟。

今天在家试了一下: 居然可以用 eXceed 通过 ssh 连上公司的 机器。 呵呵,以后不用跑了,就在家!  


我的参考文档如下:

论坛徽章:
0
2 [报告]
发表于 2007-03-29 03:15 |只看该作者
http://www.cag.lcs.mit.edu/~wentzlaf/faq/ssh_X.html

[B]How to tunnel X over ssh[/B]

So I am sure this exists somewhere else on the web, but here is my two cents for what you need to do to get automatic X tunneling.

For instructive purposes, we will use a small scenario to explain what needs to be done. There are two machines names my_local_machine and far_away_machine. my_local_machine is the machine whose local X server that you want to display to and far_away_machine is the machine that you want to run a program on and have it displayed to my_local_machine.

Steps that you need to do:

   1. Make sure that the machine that you are connecting to, far_away_machine, has the following line in its sshd_config file. This file usually lives in either \'/etc/\' or \'/etc/ssh\'.
      X11Forwarding yes (THIS IS THE LINE THAT YOU NEED)
      If this is not there contact the owner/sysadmin for the far_away_machine and have this line added.
   2.
          * If you are using Windows on my_local_machine:
            Get a ssh agent which supports ssh tunneling. I use a nice free open source one which is an extension to Tera Term. It is called TTSSH. So go and get Tera Term and the TTSSH extension and install them. Now turn on the X tunneling. This is done by going into the Setup->SSH Forwarding menu and make sure that the Display remote X applications in local X server is checked. Now save Setup->Save Setup your configuration, use the default name, so that the next time that you run TTSSH you don\'t have to recheck that box. There is an equivalent check box for most other windows programs like FSecure, etc.
          * If you are using UNIX/Linux on my_local_machine:
            So for this to work you need to either pass a flag to ssh, notably the -X flag, or set up your systems global ssh_config file to contain:
            ForwardX11 yes
            ssh_config lives in either \'/etc/\' or \'/etc/ssh\' on most machines. Also this may not even be needed based on how your ssh client was compiled.
   3. Log into far_away_machine and type \'xterm &\' or something like that and see the ssh tunneled window appear on my_local_machine\'s screen.

Frequently Asked Questions

    * Q: Does this work through a firewall?
      A: Yes, it should, or at least if ssh works through your firewall, tunneling X through it should work because ssh does a point-to-point encryption of all of your traffic thus when using X Windows over ssh, all of your data uses the same TCP connection that is used for the data that you type. Thus a firewall cannot determine the difference of X traffic and you just typing a lot.
    * Q: If I am running Windows, do I need a local X server to remotely display X traffic to?
      A: Yes, Windows does not currently ship with a local X Windows Server. I personally use Exceed because it is fast, but it is also relatively expensive. If you are looking for a cheaper solution, I know that Mircoimages sells a cheaper one for windows called MI/X for $25 with a free trial. Also, Cygwin has a free port of XFree86 for windows but cygwin might be difficult to install (I haven\'t installed Cygwin for years, but I have heard it is much easier to install now).
    * Q: Do I need xauth installed on the far_away_machine?
      A: Yes, I learned this the hard way when trying to follow my own directions and failing on a very minimal system. Once xauth is installed everything works.

论坛徽章:
0
3 [报告]
发表于 2007-04-05 10:18 |只看该作者
好象要钱的啊

$545

论坛徽章:
0
4 [报告]
发表于 2007-04-05 16:28 |只看该作者
公司的机器 是不是有固定的IP了

论坛徽章:
0
5 [报告]
发表于 2007-04-07 09:34 |只看该作者
最初由 ltc009 发布
[B]好象要钱的啊

$545 [/B]

很多 SSH Client 不要钱的。 比如我用的这个:

ssh.jpg

0 Bytes, 下载次数: 1438

论坛徽章:
0
6 [报告]
发表于 2007-09-02 12:10 |只看该作者
这样方便多了,回去做下实验
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP