X11 Forwarding using Xming and PuTTY

We can run graphical programs on Linux/Solaris machines on campus remotely and display them on your desktop computer running Windows. We can do this by using running two applications together on your Windows machine: Xming and PuTTY.

What is Xming?

Xming is a PC X Window Server. This enables programs being run remotely to be displayed on your desktop. Download and run the installation program from: http://sourceforge.net/projects/xming/

Navigate to the Files section and download:

Xming setup from the Xming folder

the fonts package installer from the Xming-fonts folder

By default both programs will be installed into the same location, so don’t the worry about over writing files. We cannot work without both packages.

Once installed, running All Programs > Xming > XLaunch is a good idea to see what the configuration looks like. In most cases, the default options should be just fine.

Finally run All Programs > Xming > Xming to start the PC X Server. The “X” icon should be visible on the Windows Taskbar, as in the image below. The X Server must be started before setting up a SSH connection to a campus machine.

What is PuTTY?

PuTTY is a free SSH client. Through PuTTY we connect to a remote machine on the UT Dallas campus. Download the single Windows executable file from: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html There is no setup required, you can run by simply double clicking putty.exe.

Configuring PuTTY

Under Session, enter the hostname you want to connect to: apache.utdallas.edu on port 22. Make sure the connection type is ssh.

  1. Next, scroll to Connection > SSH > X11. Check the box next to Enable X11 Forwarding. By default the X Display location is empty. You can enter localhost:0. The remote authentication should be set to MIT-Magic-Cookie-1
  2. Finally go back to Session. You can save your session too, and load it each time you want to connect.
  3. Click Open to bring up the terminal and login using your netid/password .

Open a graphical application by typing the command name

{apache:~} gvim itworks.txt & 

The ampersand runs the command in background so that you can work on your terminal and run the graphical application.

Tips

To connect to solarium for instance, connect to apache as above and then from the terminal:

{apache:~} ssh –X solarium

The -X switch as you guessed enables X11 forwarding. You can run X11 applications on solarium now!

A few gotchas

  • Error message - X connection to localhost:47.0 broken (explicit kill

    or server shutdown).

    • Fix: Check X server is running. Did you forget to start Xming before

      connecting to the server?

  • Error message - cannot open display
    • Fix: Is the DISPLAY variable set? Did you set X11 forwarding by

      adding the -X switch to the ssh command?

  • gVim Error message - E665: Cannot start GUI, no valid font found
    • Fix? Download and install fonts DejaVu-fonts.zip. The latest version

      of the DejaVu Fonts can be downloaded from the DejaVu Download Page.

  • Cadence Error message - X Error of failed request: BadName (named

    color or font does not exist)

    • FIX: Download and install fonts Xming-fonts-7-5-0-25-setup.exe. The

      latest version of the Xming fonts pack can be downloaded from the

      Xming files list.

时间: 2024-10-08 18:26:01

X11 Forwarding using Xming and PuTTY的相关文章

USRP E310启用SSH的X11 Forwarding功能

SSH的X11 Forwarding功能提供了一个非常好的方法,在你的本地主机上执行远程主机的GUI程序. 1.USRP E310中做如下配置: 打开/etc/ssh/sshd_config,并添加如下两项: AllowTcpForwarding yesX11Forwarding yes 2.远程客户端中执行:ssh -X [email protected]_addr,即可.

RHEL5.8设置OpenSSH的X11 Forwarding功能

X11的Forwarding功能需要在SSH中进行设置,RedHat Enterprise Linux5.8默认使用的而是OpenSSH,现将设置方法记录如下: OpenSSH配置文件路径: /etc/ssh/sshd_config 使用vi编辑器打开该配置文件,使用"/X11"搜索关键字. 找到"#X11Forwarding yes"去掉前面的#注释,将"X11Forwarding no"行最前面增加#注释. 保存:":x"

ssh服务器的x11 forwarding报错的解决

SSH的X11 Forwarding功能提供了一个非常好的方法,在你的本地主机上执行远程主机的GUI程序.但如果使用时报错,如何解决呢? 1.检查linux主机的配置你需要在你的远程linux主机上配置OpenSSH服务,启用X11 Forwarding.在OpenSSH的配置文件中(/etc/ssh/sshd_config),打开如下两项: AllowTcpForwarding yesX11Forwarding yes 打开这两个选项,然后重启sshd服务.注意:使用X11 Forwardin

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

xshell连接centos7,报错:"The remote SSH server rejected X11 forwarding request." 打开文件/etc/ssh/sshd_config,修改下面的参数 X11Forwarding yes 如果有,那就不用修改 修改xshell连接属性 把勾选去掉即可! 参考:https://blog.csdn.net/salonzhou/article/details/16358711 原文地址:https://www.cnblogs.

Centos 7 X11 Forwarding及X协议组件

配置开启sshd的X11 forwardingvi /etc/ssh/sshd_configX11Forwarding yes #开启X11 forwarding X11需要的X协议组件xorg-x11-xauth #安装x11组件包 wqy-zenhei-fonts #安装中文字库 ibus-libpinyin #安装中文输入法 安装yum install -y xorg-x11-xauth xorg-x11-utils xorg-x11-fonts-* tab命令补齐组件bash-compl

WARNING! The remote SSH server rejected X11 forwarding

在用 xshell 连接服务器时有时可能会遇到这种警告 解决方法非常简单,点击 文件 属性 点击隧道,取消勾选 转发 X11 再点击确定即可解决 再重新连接,就没有警告了 原文地址:https://www.cnblogs.com/morganlin/p/12092779.html

Warning:The remote SSH server rejected X11 forwarding request.

初次升级Openssh 7.1 p2之后,然后用Xshell远程连接出现WARNING,如下图所示: 解决方法: 方法一:修改配置文件 vim /etc/ssh/sshd_config 将文件中的X11Forwarding的注释去掉并将参数由no改为yes 然后再将UseLogin no的注释也去掉. 保存之后重启sshd服务. 方法二:如下图所示:

X11 forwarding request failed on channel 0解决方案

纯粹转载记录一下解决方案.原文: http://ask.xmodulo.com/fix-broken-x11-forwarding-ssh.html 简述一下两种解决方案: 修改/etc/ssh/sshd_config,增加X11UseLocalhost no 修改/etc/ssh/sshd_config,增加AddressFamily inet 之后重启ssh服务即可

R语言putty中直接使用X11(Xming)绘图

1.下载Xming地址 http://pan.baidu.com/s/1o6ilisU,安装,推荐默认安装在C盘,推荐快捷方式放在与putty快捷方式同一个文件夹: 2.打开putty,在SSH的X11选项中勾选Enable X11 forwarding,保存putty设置: 3.运行Xming,最小化在系统托盘,使用putty进入一个服务器: 4.打开R语言 > x=c(-5:5)> y=x*x> plot(x,y,type='b') 5.绘图显示曲线