一分快三技巧准确率100

需求:mac上重定向图形化安装软件,如跑dbca和asmca之类的,如果linux无桌面,就无法vnc,用win虚拟机不方便,可是mac下没有xmagager passive软件,发现XQuartz可以满足需求。
本环境:
客户端MacOS catalina
服务端centos65,centos76(都是无桌面最简linux)

(1)服务端xclock看下,没有命令就补包
找不到xclcok命令:yum -y install xorg-x11-apps
找不到xhost命令:yum -y install xorg-x11-server-utils
(2)服务端xhost看返回如下为正常,没有命令就补包
xhost +
代表正常:access control disabled, clients can connect from any host
代表正常:access control enabled, only authorized clients can connect
客户端安装XQuartz后配置环境变量后,xhost才显示正常,不然显示xhost: unable to open display “”
(3)客户端mac安装软件XQuartz(授权一些权限 不用任何配置),配置环境变量
XQuartz-2.7.11.dmg(求安装包66235246@qq.com 不谢)
cat ~/.zshrc
export DISPLAY=:0
(4)客户端mac运行XQuartz软件,打开自带终端
ssh -Y root@host
ssh登录报错:X11 forwarding request failed on channel 0
解决:yum install -y xauth(登录提示 /usr/高兴的蜡烛/xauth: file /root/.Xauthority does not exist没关系)
xhost
xclock能跳出就代表可以使用了
ssh -Y 普通用户@host
(5)
主要参考: https://lequ7.com/guan-yu-macosmacos-shi-yong-xquartz-zhi-chi-x11-shi-xian-linux-tu-xing-hua-jie-mian-xian-shi.html
这个文章说的服务端sshd_config参数其实非必选,我都没改,就用系统默认配置https://www.cnblogs.com/lixiaochun/p/8547815.html