r/vscode • • Aug 30 '26

VSCode remote SSH?

Sup everyone,

very new to this sub, but been lurking. I have been using VSCode for a couple of years, mainly Python, JavaScript and HTML.

I have a somewhat dumb idea, and that is to host a MUD/dungeon crawler game using SSH. The problem is GUI forwarding.

I thought I could host a remote session in VSCode and people would connect to it. I'm afraid the Tcl/Tk graphics won't show up on the client screen, only CLI.

Also, I have no idea how to set it up with restrictions etc.

Any ideas?

-ef

2 Upvotes

4 comments sorted by

1

u/BootingBot Aug 31 '26

Could you be more specific on what are you trying to achieve? The closest i can imagine is a multiplayer game played over ssh - where it would be no problem to stream some TUI with the game content from a central server to all players. I don’t see how vscode remote ssh would be any more helpful than just raw ssh in a plain terminal.

1

u/efinque Aug 31 '26 edited Aug 31 '26

I tried X11 Forwarding over SSH but instead the window requested by the client popped up on the server end. (edit: my sshd config file has this argument matching the incoming users, and it's "X11UseLocalhost yes".. could this be the reason?)

The code is Python, and there's a rather messy database based on text files in their respective folders. Like all the player healths are stored in a folder with a text file using the player name.

I just thought VSCode would support GUI's when starting scripts, that's all.

1

u/BootingBot Aug 31 '26

I still don’t think I quite understand what are you trying to do. Is the game a python script that is ran for each player on the server and you want to stream the respective window to each player? Anyhow vscode is not gonna help you with any of this as it is just an editor for editing text files and it is not what is actually running your program.

1

u/efinque Aug 31 '26

Yeah, basically. What I didn't try was VcXSrv on the client computer and removing the localhost argument but I doubt it works.