FROM:http://www.netsarang.com/tutorial/xshell/1018/Using_X11_forwarding

The X11 forwarding feature is a special case of port forwarding. The X11 protocol is used by PC X server software and the connection is made from the remote server to the local PC, a reverse of other client programs such as email or telnet. By using the X11 forwarding, you can skip the setting up complicated port forwarding rules required to run X server software.

Step 1: Configuring X11 Forwarding in Xshell
  1. On the File menu, click Open. The Sessions dialog box shows up.
  2. Click a session in which you want to configure the tunneling service.
  3. Click the Properties button on the toolbar. The Properties dialog box shows up. Click Tunneling category.
  4. In the X11 Tunneling section, check Forward X11 connections to.
  5. If you have Xmanager installed in your system, select Xmanager.
  6. If you use another PC X server, select X display location and enter the proper display name.
  7. Click OK to save your changes.
Step 2: Configuring X11 forwarding service in the SSH server

Setup the configuration file in the following table.

SSH server
Config file
Setup

OpenSSH
/etc/ssh/sshd_config
X11Forwarding yes

SSH.COM
/etc/ssh2/sshd2_config
AllowX11Forwarding yes

Now, you are ready to execute remote X11 applications in the SSH shell prompt securely over the SSH tunnel.

Step 3: Running X applications from the Xshell terminal
  1. If Xmanager is installed on your PC, just go to the next step. Otherwise, run the PC X server installed on your PC first.
  2. Establish the SSH connection using the session you configured.
  3. At the shell prompt of Xshell, execute an X11 application as following:
    [nathaniel@intranet ~]$ xterm &
    You have tried to run X11 applications securely over the secure SSH tunnel so far. If you have any problems in running X11 applications, see the Troubleshooting section below.
Troubleshooting
  1. Xshell shows "Failed to execute Xmanager: Make sure that Xmanager is correctly installed in this system." message.
    The session is configured to forward the X11 connection to Xmanager, but Xmanager is not found in your system. To use Xmanager, download and install Xmanager and run X11 application again. To use other PC X servers, open the Properties dialog box and go to the X11 Tunneling section. Then, select X display location and enter the proper X display name.
  2. Xshell shows "The remote SSH server rejected an X11 forwarding request." message.
    Make sure that the X11 forwarding feature of the remote SSH server is enabled.
    • For OpenSSH servers: In the file /etc/ssh/sshd_config, set
      X11Forwarding yes
    • For SSH.COM servers: In the file /etc/ssh2/sshd2_config, set
      AllowX11Forwarding yes
    • For other ssh server products: Refer to the SSH server manual from its provider.

Xshell_Using X11 forwarding的更多相关文章

  1. RHEL5.8设置OpenSSH的X11 Forwarding功能

    X11的Forwarding功能需要在SSH中进行设置,RedHat Enterprise Linux5.8默认使用的而是OpenSSH,现将设置方法记录如下: OpenSSH配置文件路径: /etc ...

  2. The remote SSH server rejected X11 forwarding request

    两台相同的虚拟机,一台没有错误,一个经常出现警告,内容如下所示: The remote SSH server rejected X11 forwarding request 找了很多方法,最后发现是安 ...

  3. Xshell报错“The remote SSH server rejected X11 forwarding request.”

    Xshell报错“The remote SSH server rejected X11 forwarding request.” 2012年12月17日 ⁄ Linux⁄ 共 218字 ⁄ 字号 小  ...

  4. Xshell 连接虚拟机出现 "The remote SSH server rejected X11 forwarding request"

    1. 描述 虚拟机:VirtualBox Linux: centOS7 解决了 centOS7在VirtualBox中装好后的网络连接问题 后,用 Xshell 连接服务器时出现下面情况: 2. ss ...

  5. 【转帖】远程显示(操作) 服务器 GUI 程序(图形化界面) (基于 X11 Forwarding + Centos + MobaXterm)

    远程显示(操作) 服务器 GUI 程序(图形化界面) (基于 X11 Forwarding + Centos + MobaXterm) https://zhuanlan.zhihu.com/p/310 ...

  6. 远程显示(操作) 服务器 GUI 程序(图形化界面) (基于 X11 Forwarding + Centos + MobaXterm)

    在做 数据分析(数据挖掘 或 机器学习)的时候,我们经常需要绘制一些统计相关的图表,这些统计.绘图的程序常常是跑在服务器上的,可是服务器出于性能和效率的考虑,通常都是没有安装图形化界面的,于是这些统计 ...

  7. 解决 Xshell 连接出现 The remote SSH server rejected X11 forwarding request 问题

    问题描述 使用 Xshell 5 首次连接虚拟机 CentOS 7.6 出现这样的提示: WARNING! The remote SSH server rejected X11 forwarding ...

  8. 解决"The remote SSH server rejected X11 forwarding request"问题

    今天突然想起来好久没有登录我的vps了,于是下载了xshell,填入地址登录后,看到提示"WARNING! The remote SSH server rejected X11 forwar ...

  9. 解决“WARNINGThe remote SSH server rejected X11 forwarding request.“警告

    使用xshell连接服务器时,出现了"WARNING! The remote SSH server rejected X11 forwarding request.",意思是&qu ...

随机推荐

  1. 一个页面从输入URL 到页面加载显示完成的过程中都发生了什么

    前端面试/笔试必考问题,越详细越好 先简单得讲: 浏览器根据请求的URL交给DNS域名解析,找到真实IP,向服务器发起请求: 服务器交给后台处理完成后返回数据,浏览器接收文件(HTML.JS.CSS. ...

  2. PDF表单域(FormField)在HTML显示与提交数据到服务器

    1.Adobe Arobat Pro等可以编辑表单域,只有几种控件: 2.展示PDF,可用PdfObject.js,Chrome自带? @{ViewBag.Title = @ViewBag.aaa;} ...

  3. js分辨浏览器类别和版本

    function BrowserInfo() { var ua = navigator.userAgent.toLowerCase(); var Sys = {}; var s; (s = ua.ma ...

  4. Android 环境常见问题

    1.启动adb时报: adb server is out of data.kill... ADB server didn't ACK    *failed to start daemon*    er ...

  5. Egret 压缩与解压(jszip)

    一 jszip是什么 二 为什么要用jszip 三 如果使用zip 一 jszip是什么 jszip 是一个 JavaScript 库,可直接在浏览器上创建 zip 压缩档. 二 为什么要用jszip ...

  6. 使用NuGet Package Project快速制作NuGet包

    今天在visual studio gallery发现了一个插件NuGet Package Project,通过它可以在Visual Studio中建立Nuget Package工程,直接生成Nuget ...

  7. empty isset array_key_exists 的区别

    empty: 参数为0或为NULL时(如上面列子),empty均返回TRUE,详细情况可以参见empty官方手册 isset: 参数为NULL时,返回FALSE,0与NULL在PHP中是有区别的,is ...

  8. VC++ chap13 文档与串行化

    Lesson 13 文档与串行化 13.1使用CArchive类对文件进行读写操作 //让对象数据持久性的过程称之为串行化,或者序列化 void CGraphicView::OnFileWrite() ...

  9. Android-ConvenientBanner轻松实现广告头效果

    Android-ConvenientBanner通用的广告栏控件,让你轻松实现广告头效果.支持无限循环, 可以设置自动翻页和时间(而且非常智能,手指触碰则暂停翻页,离开自动开始翻页. 你也可以设置在界 ...

  10. Android Studio鼠标悬停显示注释

    Android Studio鼠标悬停显示注释 在AS中配置 如果你想从网上查看注释,到这一步就操作完成. 下面说明让软件使用本地注释: 使用本地注释 以Windows为例: 找到下面文件 C:\Use ...