Ubuntu 使用 x11 转发操作服务器,配置修改提要


最近,使用ubuntu 发现默认不能使用 x11转发。配置修改如下:

sudo vim /etc/ssh/sshd_config:修改服务端的sshd

X11Forwarding yes

sudo systemctl restart sshd.service

sudo vim /etc/ssh/ssh_config:修改客户端的ssh

sudo systemctl restart ssh.service

开启x11服务器:可把操作添加到 ~/.bashrc之中

xhost + # 实际操作过程中,此步骤可省略

xclock测试;

参考链接:https://www.cnblogs.com/tsfh/p/9022170.html 

此种方法,在内网服务器操作时,比较有效,方便;

保持更新,转载请注明出处; cnblogs.com/xuyaowen;


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM