Git Product home page Git Product logo

Comments (11)

Turdari avatar Turdari commented on September 28, 2024 1

some more add on Steps to Reproduce

  1. install vscode and enable remote ssh
  2. add new host with ssh -X username@host
  3. connect.
  4. Terminal -> New Terminal

from vscode.

a-usr avatar a-usr commented on September 28, 2024

Just to clarify, The $DISPLAY environment variable is supposed to live on the remote machine, right?

from vscode.

Turdari avatar Turdari commented on September 28, 2024

Yes, it is. local $DISPLAY may not need to be concerned.

I've tested with manually broken local $DISPLAY with "" + ssh -X connect to remote.
in this case, remote creates $DISPLAY but not works. (so it is totally different case with this issue)

from vscode.

a-usr avatar a-usr commented on September 28, 2024

And it works when you do ssh-remote + integrated terminal and manually set $DISPLAY ?

from vscode.

Turdari avatar Turdari commented on September 28, 2024

Hmm... actually, that "works" not properly works.

If I connect with other shell (for example bash terminal) and connect with ssh -X, local & remote creates display connection rule, between local and remote. that is what we called $DISPLAY in remote machine.

what we call "manually setting $DISPLAY" is borrowing those connection temporary.
When we lost other shell (for example bash terminal) which maintaining that connection,
$DISPLAY broke and not working any more.

from vscode.

Turdari avatar Turdari commented on September 28, 2024

for example )
ssh-remote + integrated terminal connected to remote get's
$DISPLAY variable of "" which is null

in this case, how we should set $DISPLAY ?
answer is we don't know.

to get answer, we need to prepare another ssh connection, which is not "ssh-remote + integrated terminal "
and after ssh connection, we get proper $DISPLAY
and copy it to our "ssh-remote + integrated terminal " to make display work.

$DISPLAY is dynamic in ssh connection so above procedure is mandatory.
if you think this situation is weird, please care.

from vscode.

a-usr avatar a-usr commented on September 28, 2024

Could you check wether remote.SSH.enableX11Forwarding is enabled?

from vscode.

a-usr avatar a-usr commented on September 28, 2024

also remote.SSH.enableAgentForwarding

from vscode.

Turdari avatar Turdari commented on September 28, 2024

Hi, I'm here to post sorry text.

two configurations are all enabled,
remote.SSH.enableX11Forwarding
remote.SSH.enableAgentForwarding

but, after restarting remote for test, "ssh-remote + integrated terminal" works with no problem.
it creates proper $DISPLAY variable and everything works fine.
maybe it was just initialization problem in remote server.

from vscode.

Turdari avatar Turdari commented on September 28, 2024

May I close this issue?

from vscode.

a-usr avatar a-usr commented on September 28, 2024

You may.

from vscode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.