0%

mac远程连接linux图形化程序

通过ssh终端连接

mac安装XQuartz

1
brew install --cask xquartz

登陆远程服务器,确保ForwardAgentForwardX11ForwardX11Trusted设置为yes

1
2
vim /etc/ssh/ssh_config  
service ssh restart #重启

在Vscode端

1
2
3
4
5
6
7
8
Host remote_server
HostName x.x.xx.xx
Port 36000
User root
IdentityFile ~/.ssh/id_rsa
ForwardX11 yes
ForwardX11Trusted yes
ForwardAgent yes