最近,使用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;
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/24186.html
標籤:Linux
下一篇:NXP_RTCESL庫
