首页 > 编程知识 正文

ubuntu系统 ssh远程链接X Server,u盘系统带远程链接

时间:2023-05-03 20:46:46 阅读:185035 作者:1578

ubuntu系统 ssh远程链接X Server 通过ssh将开发板的linux的桌面链接到主机端显示:1.首先安装ssh Server 与ssh client ,开发板为ssh server,pc为ssh client2.确保pc能ping通开发板3.开发板 /etc/ssh/sshd_config 文件 X11Forwarding yes AllowTcpForwarding yes X11DisplayOffset 10 X11UseLocalhost yes ~/.bashrc 文件 # export DISPLAY=xx.xx.xx.xx:x.x 注释掉该行,如果其他环境变量定义的文件中有DISPLAY的定义,也要注释掉4.pc /etc/ssh/ssh_config 文件 ForwardAgent yes ForwardX11 yes ForwardX11Trusted yes5.pc 运行指令: xhost + ssh -X root@192.168.99.101 其中root为开发板用户名,192.168.99.101是开发板ip地址,都需要根据实际更改

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。