Xshell_Using X11 forwarding
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
- On the File menu, click Open. The Sessions dialog box shows up.
- Click a session in which you want to configure the tunneling service.
- Click the Properties button on the toolbar. The Properties dialog box shows up. Click Tunneling category.

- In the X11 Tunneling section, check Forward X11 connections to.
- If you have Xmanager installed in your system, select Xmanager.
- If you use another PC X server, select X display location and enter the proper display name.
- 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
- If Xmanager is installed on your PC, just go to the next step. Otherwise, run the PC X server installed on your PC first.
- Establish the SSH connection using the session you configured.
- 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
- 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. - 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.
- For OpenSSH servers: In the file /etc/ssh/sshd_config, set
Xshell_Using X11 forwarding的更多相关文章
- RHEL5.8设置OpenSSH的X11 Forwarding功能
X11的Forwarding功能需要在SSH中进行设置,RedHat Enterprise Linux5.8默认使用的而是OpenSSH,现将设置方法记录如下: OpenSSH配置文件路径: /etc ...
- The remote SSH server rejected X11 forwarding request
两台相同的虚拟机,一台没有错误,一个经常出现警告,内容如下所示: The remote SSH server rejected X11 forwarding request 找了很多方法,最后发现是安 ...
- Xshell报错“The remote SSH server rejected X11 forwarding request.”
Xshell报错“The remote SSH server rejected X11 forwarding request.” 2012年12月17日 ⁄ Linux⁄ 共 218字 ⁄ 字号 小 ...
- Xshell 连接虚拟机出现 "The remote SSH server rejected X11 forwarding request"
1. 描述 虚拟机:VirtualBox Linux: centOS7 解决了 centOS7在VirtualBox中装好后的网络连接问题 后,用 Xshell 连接服务器时出现下面情况: 2. ss ...
- 【转帖】远程显示(操作) 服务器 GUI 程序(图形化界面) (基于 X11 Forwarding + Centos + MobaXterm)
远程显示(操作) 服务器 GUI 程序(图形化界面) (基于 X11 Forwarding + Centos + MobaXterm) https://zhuanlan.zhihu.com/p/310 ...
- 远程显示(操作) 服务器 GUI 程序(图形化界面) (基于 X11 Forwarding + Centos + MobaXterm)
在做 数据分析(数据挖掘 或 机器学习)的时候,我们经常需要绘制一些统计相关的图表,这些统计.绘图的程序常常是跑在服务器上的,可是服务器出于性能和效率的考虑,通常都是没有安装图形化界面的,于是这些统计 ...
- 解决 Xshell 连接出现 The remote SSH server rejected X11 forwarding request 问题
问题描述 使用 Xshell 5 首次连接虚拟机 CentOS 7.6 出现这样的提示: WARNING! The remote SSH server rejected X11 forwarding ...
- 解决"The remote SSH server rejected X11 forwarding request"问题
今天突然想起来好久没有登录我的vps了,于是下载了xshell,填入地址登录后,看到提示"WARNING! The remote SSH server rejected X11 forwar ...
- 解决“WARNINGThe remote SSH server rejected X11 forwarding request.“警告
使用xshell连接服务器时,出现了"WARNING! The remote SSH server rejected X11 forwarding request.",意思是&qu ...
随机推荐
- Android IOS WebRTC 音视频开发总结(七二)-- 看到Google Duo,你想到了什么?
本文主要介绍在线教育这个行业,文章最早发表在我们的微信公众号上,支持原创,详见这里, 欢迎关注微信公众号blackerteam,更多详见www.rtc.help 在昨天的Google I/O大会上Go ...
- Django过滤器列表
Django 模板过滤器也是我们在以后基于 Django 网站开发过程中会经常遇到的,如显示格式的转换.判断处理等.以下是 Django 过滤器列表,希望对为大家的开发带来一些方便. 一.形式:小写 ...
- js中Array对象方法详解
操作方法:concat() slice() splice() concat()方法可以基于当前数组中的所有项创建一个新数组.具体来说,这个方法会创建当前数组一个副本,将接收到参数添加到副本的末尾,最后 ...
- Ubuntu下搭建Android编译环境
Ubuntu一台新机器的一些环境搭建新增一个3TB的硬盘,挂载方法,大于2TB的得parted来进行分区1: sudo parted /dev/sda2: mklabel gpt3: unit TB4 ...
- java1.7集合源码阅读:LinkedList
先看看类定义: public class LinkedList<E> extends AbstractSequentialList<E> implements List< ...
- mybatis(三)懒加载
懒加载的好处: 所谓懒加载(lazy)就是延时加载,延迟加载.什么时候用懒加载呢,我只能回答要用懒加载的时候就用懒加载.至于为什么要用懒加载呢,就是当我们要访问的数据量过大时,明显用缓存不太合适,因为 ...
- datagridview中使用checkbox问题。
如果套用datagridview中的checkboxfield,生成的数据,会出现无法选择datagridview中数据项的问题,即checkbox不可以被鼠标点击,选中/取消选中.此checkbox ...
- Tornado sqlalchemy
上篇文章提到了,最近在用 Python 做一个网站.除了 Tornado ,主要还用到了 SQLAlchemy.这篇就是介绍我在使用 SQLAlchemy 的过程中,学到的一些知识. 首先说下,由于最 ...
- PHP--字符串处理函数
字符串的声明 1. 2. 3. [注]单引号与双引号声明字符串的区别: 1.strlen():获取字符串长度 2.substr():截取字符串 3.strpos():查找字符串在指定字符串中的位置 4 ...
- Block的copy和循环引用的问题
在实际开发中,发现使用Block有着比delegate和notification更简洁的优势.于是在目前的项目中大量的使用block. 在我的头文件我是这样声明使用block的. 我将block声明为 ...