Connecting to DreamHost server with VS Code

Something that I frequently need to do is to access the DreamHost servers that host this blog and a few other subdomains of fuzzyworld.net.

One way to do this is to use ssh and just connect to the server, like this:

ssh fuzzygamer@gilmer.dreamhost.com

But then I have to modify HTML files or whatever using command-line utilities like nano or vim, and that’s not my preferred way to work.

So the simpler approach is actually to launch VS Code (or, in my case, to find one of the already open instances), click in the lower-left corner and connect to the DreamHost server directly.

This generally works, though sometimes (on first attempt, or after a software change), VS Code will complain and not be able to connect to the server.

The solution that I’ve stumbled onto is detailed in this blog post, and here’s the command that I need to use:

cd .vscode-server/bin/
setfattr -n user.pax.flags -v "mr" $(find $NVM_DIR -type f -iname "node" -o -iname "npm" -o -iname "npx")

Leave a Reply

Your email address will not be published. Required fields are marked *