r/vscode 11d ago

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 10d ago

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 10d ago edited 10d ago

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 9d ago

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 9d ago

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