报错/home/yourUsername/su/bin/ximage: Cannot connect to display !
安装完rehl系统后,用xshell登录时使用suximage一直报错报错/home/yourUsername/su/bin/ximage: Cannot connect to display !
后来是用xstart,就不会报错,但是感觉xstart还是没有xshell方便。
搜了一下,可能是xterm没安装的缘故。
输入以下命令
sudo yum install xterm
然后就可以了。
试了一下,在ubuntu上也有这个问题,但是输入
sudo apt install xterm
显示该软件已经安装了
查看/etc/ssh/sshd_config 显示X11Forward选项是yes
于是在xshell中设置X11转发,重新连接,ximage可用了
参考链接
https://blog.csdn.net/weixin_39509073/article/details/113573754