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. 第五百七十七天 how can I 坚持

    今天看了个电影<七月与安生>,挺不错,周冬雨,马思纯,然后就突然有了个想法,过年不回家了,去趟拉萨,或许只是想想吧,不知道有没有勇气去啊,何况是自己一个人,但是又想,旅行要是没点冒险的话, ...

  2. tcl使用笔记

    tcl语法网站:http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm 1)拷贝文件 set PRJ_HDL_DIR "../prj/hdl&quo ...

  3. maven自动部署到远程tomcat教程

    使用maven的自动部署功能可以很方便的将maven工程自动部署到远程tomcat服务器,节省了大量时间. 本文章适用于tomcat的7.x ,8.x, 9.x版本. 下面是自动部的步骤 1,首先,配 ...

  4. Mongodb数据导出工具mongoexport和导入工具mongoimport介绍

    一.导出工具mongoexport Mongodb中的mongoexport工具可以把一个collection导出成JSON格式或CSV格式的文件.可以通过参数指定导出的数据项,也可以根据指定的条件导 ...

  5. Asp.net Page指令

    Page指令为编译器编译页面时使用的指令 指令的格式为 <%@ [Directive] [Attribute=value]%> <%@ Page Language="C#& ...

  6. 天气api

    http://php.weather.sina.com.cn/xml.php?city=%D6%D8%C7%EC&password=DJOYnieT8234jlsK&day=0 cit ...

  7. Spring 定时执行任务

    好不容易写了半天的文章竟然由于断网而丢失了,并未自动保存到草稿箱.只能简单的贴贴代码了. <?xml version="1.0" encoding="UTF-8&q ...

  8. 了解 XSS 攻击原理

    在了解 XSS 之前必须知道『网站登入(Session)』的原理 简单的说当会员成功登入后 网站会给浏览器一个『令牌』 之后只要拿着这个『令牌』到网站上 就会被视为已经登入 再来下面是 XSS 最简单 ...

  9. java基础十一[远程部署的RMI](阅读Head First Java记录)

    方法的调用都是发生在相同堆上的两个对象之间(同一台机器的Java虚拟机),如果想要调用另一台机器上的对象,可以通过Socket进行输入/输出. 远程过程调用需要创建出4种东西:服务器.客户端.服务器辅 ...

  10. C#拼接地图瓦片

    为了在AE程序中使用离线的电子地图,思路如下: 利用下载工具下载地图切片,然后利用C#进行切片拼接成一张图片,最后使用ArcMap进行地理配准,然后发布成ArcGIS Server 切片服务供程序使用 ...