# TBrowser error on remote server via ssh

**URL:** <https://root-forum.cern.ch/t/tbrowser-error-on-remote-server-via-ssh/62462>\
**Category:** Newbie\
**Created:** [December 12, 2024, 7:16pm UTC](https://root-forum.cern.ch/t/tbrowser-error-on-remote-server-via-ssh/62462 "2024-12-12T19:16:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lydnik](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/e95f7d/32.png) [@Lydnik](https://root-forum.cern.ch/u/Lydnik)\
**Post date:** [December 12, 2024, 7:16pm UTC](https://root-forum.cern.ch/t/tbrowser-error-on-remote-server-via-ssh/62462/1 "2024-12-12T19:16:06Z")

</div>

Hi there!

I’m trying to use ROOT to display some data files on a remote Linux system, via ssh in VS code, but have encountered the following error:  
connect localhost port 6023: Connection refused  
Warning in TBrowser::TBrowser: The ROOT browser cannot run in batch mode

My local system is Windows, so I have installed VcXsrv on my local server and set up the configurations according to some posts (I can’t put links here because I’m a new user). There are values for DISPLAY variable on both local and remote server, but I failed at running xeyes (although I’m not sure if I’m running it correctly, because the error message was “-bash: xeyes: command not found”). Also, when I check VcXsrv, it shows that “0 clients is connected”.

Thanks in advance for any help!

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [December 12, 2024, 8:23pm UTC](https://root-forum.cern.ch/t/tbrowser-error-on-remote-server-via-ssh/62462/2 "2024-12-12T20:23:50Z")

</div>

Hi,

thanks for the post and welcome to the ROOT Community!

Did you try to `ssh -X` to the remote Linux system from a regular shell, i.e. wsl? Did the `TBrowser` work?  
If yes, I would suggest to look into how to forward X from within VSCode.

Cheers,  
D

---

<div class="post-metadata">

**Author:** ![Lydnik](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/e95f7d/32.png) [@Lydnik](https://root-forum.cern.ch/u/Lydnik)\
**Post date:** [December 12, 2024, 8:49pm UTC](https://root-forum.cern.ch/t/tbrowser-error-on-remote-server-via-ssh/62462/3 "2024-12-12T20:49:11Z")

</div>

Hi Danilo,

Thanks for your reply! I tried ‘ssh -X’, but the same error message comes up again.

L

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [December 12, 2024, 9:09pm UTC](https://root-forum.cern.ch/t/tbrowser-error-on-remote-server-via-ssh/62462/4 "2024-12-12T21:09:24Z")

</div>

Hi,

That’s unfortunate. This seems a misconfiguration on your system: I would at first try to connect to the remote machine and visualise anything, not necessarily a root graphics primitive, any window could do. Then we can try ROOT again.

Cheers,  
D
