当前位置:网站首页>SSH link remote server and local display of remote graphical interface
SSH link remote server and local display of remote graphical interface
2022-07-03 06:21:00 【Daytime plus】
List of articles
One 、ssh Link remote server
There are many ways to do this , Here are two :MobaXterm and VSCode
1.1、MobaXterm
MobaXterm Configuration is relatively simple 
After confirmation, enter the command line interface and enter the password
1.2、VSCode
VSCode Configuration trouble points , It can be used after connecting VSCode Development tools for , Breakpoints are made above Debug No problem !
Install the extension first :
Then there will be a small icon of the display screen in the left side bar 
make new connection 
Enter the user name and IP( Format : ssh user name @IP)
Select the configuration file path ( Default to the first one )
New window 
Select the system type 
Continue
Enter the server password 
The lower right corner shows IP The connection is successful 
Open the folder according to the target path 
But that's what I chose :
in addition ,
ctrl + `
The command line window can be opened

Problems and solutions
If you encounter problems like the following , You can refer to Blog solve .
Try deleting the profile first

contrast
MobaXterm Can visualize the list of files , And provide download function !
VSCode The highlight is ssh After connecting ,VSCode All other extensions can also be used , It is basically the same as the local !
Two 、 Local display of remote graphical interface
( Apply to Ubuntu) If you just view remote documents , It can be directly connected as follows ( Format : ssh:// user name @IP)
Then it was connected directly 
notes : This method can only view the contents of remote documents , Command line run ros It's still under exploration .
If you have to run , Will be like me ( Maybe I opened it in the wrong way , Please also ask the big guy passing by to teach me !!!)
2.1、MobaXterm
ssh Execute the command after connecting :
sudo vim /etc/ssh/sshd_config
Pull down , Find the following , Change to consistent :
Save and execute the command :
service ssh reload
sudo apt install x11-apps
Then execute the following command to test :
xclock
Such a clock window will appear 
Visualization of other windows ( such as opencv Of imshow) You can explore for yourself
2.2、VSCode
And MobaXterm similar , Carry out orders code /etc/ssh/sshd_config Modify the configuration file

And then execute :
service ssh reload
sudo apt install x11-apps
however VSCode No, DISPLAY Environment variables of , Need to go MobaXterm Through execution
env | grep DISPLAY
Get output similar to the following 
Then back VSCode, perform ( These two sentences must be executed every time the terminal is opened ……)
export DISPLAY=localhost:10.0
source ~/.bashrc
Then simply look at the effect
xclock

2.3 summary
The above method can only be used to visualize simple windows , Tools that integrate complex functions such as rviz Cannot be opened ( There are successful leaders who ask me !!!)
appendix
VSCode Of CMake To configure
VSCode Of Python To configure
Reference resources
https://developer.horizon.ai/college/detail/id=89018995415500842
https://zhuanlan.zhihu.com/p/260189540
http://t.zoukankan.com/hellowooorld-p-10729981.html
边栏推荐
- 表达式的动态解析和计算,Flee用起来真香
- Analysis of Clickhouse mergetree principle
- Leetcode problem solving summary, constantly updating!
- Mysql5.7 group by error
- Reinstalling the system displays "setup is applying system settings" stationary
- 致即将毕业大学生的一封信
- 輕松上手Fluentd,結合 Rainbond 插件市場,日志收集更快捷
- Selenium - 改变窗口大小,不同机型呈现的宽高长度会不一样
- Luogu problem list: [mathematics 1] basic mathematics problems
- Kubernetes notes (III) controller
猜你喜欢

Selenium - 改变窗口大小,不同机型呈现的宽高长度会不一样

轻松上手Fluentd,结合 Rainbond 插件市场,日志收集更快捷

How to scan when Canon c3120l is a network shared printer

深入解析kubernetes controller-runtime

Reinstalling the system displays "setup is applying system settings" stationary

2022 CISP-PTE(三)命令执行
![[set theory] relational closure (relational closure solution | relational graph closure | relational matrix closure | closure operation and relational properties | closure compound operation)](/img/a4/00aca72b268f77fe4fb24ac06289f5.jpg)
[set theory] relational closure (relational closure solution | relational graph closure | relational matrix closure | closure operation and relational properties | closure compound operation)

Fluentd is easy to use. Combined with the rainbow plug-in market, log collection is faster

Use selenium to climb the annual box office of Yien

智牛股项目--05
随机推荐
数值法求解最优控制问题(一)——梯度法
Es remote cluster configuration and cross cluster search
Luogu problem list: [mathematics 1] basic mathematics problems
智牛股项目--04
剖析虚幻渲染体系(16)- 图形驱动的秘密
Fluentd is easy to use. Combined with the rainbow plug-in market, log collection is faster
Decision tree of machine learning
Oracle database synonym creation
Some thoughts on machine learning
Advanced technology management - do you know the whole picture of growth?
Cesium 点击获三维坐标(经纬度高程)
Mysql database
简易密码锁
Analysis of Clickhouse mergetree principle
Zhiniu stock project -- 04
Kubernetes notes (IX) kubernetes application encapsulation and expansion
【LeetCode】Day93-两个数组的交集 II
MySQL帶二進制的庫錶導出導入
Support vector machine for machine learning
PMP notes
