openssh and X11 forwarding

一般客户端通过ssh获得可视化的窗口,可以在ssh命令后面加上选项-X或-Y,但是并不是所有的主机都支持可视化,需要在主机上修改/etc/ssh/sshd_config文件:
X11Forwarding yes
若不想影响到所有的用户,也可以对某个用户设置,修改$HOME/.ssh/config文件
Host remotehost
ForwardX11 yes
但在CentOS6.2系统中,会提示:
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Remote: No xauth program; cannot forward with spoofing.
说明没有X的认证库,需要安装:
yum install xorg-x11-xauth
即可。



Monthly Archives

Pages

Powered by Movable Type 7.7.2

About this Entry

This page contains a single entry by Cnangel published on July 17, 2012 2:48 PM.

解决Virtualbox虚拟机时间不同步的问题 was the previous entry in this blog.

undefined reference to `__atomic_fetch_add_4' is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.