Open ihakh opened 3 years ago
I'm in the same boat. I'm using VS code on a windows local machine and connected to a remote linux machine (where the repo exists), and meld is attempting to launch on that remote machine, which is headless (hence the error above). Is there a way to direct VS to run the diff of the remote machine's files on the local machine (where both VS and Meld are installed)?
When you define the x11 forwarding in your connection it works.
By adding a new connection use ssh -X user@host
.
Check in your ~/.ssh/config if ForwardX11 yes
is configured for your added connection.
You can also allow X11 forwarding in general by adding to your ~/.ssh/config:
Host *
ForwardAgent yes
ForwardX11 yes
I hope this helps.
maybe we can get some idea from https://github.com/mbikovitsky/beyond-ssh.git
for me (I also work remotely) worked following:
Remote X11, Remote Development and Remote X11 (SSH) running
in file ~/.ssh/config
I had to add following entry:
Host *
SetEnv DISPLAY=localhost:10.0
(the actual number (here 10.0
) you can verify by an echo $DISPLAY
)
in file /etc/ssh/sshd_config
on the remote Linux Workstation
AcceptEnv DISPLAY
Apparently, my used extensions do not contribute the DISPLAY
variable. Why, I don't understand...
when I connect with
ssh -X
to remote develop server I can run meld but with remote-ssh extension and this extension I get this error: