Remix.run Logo
godelski an hour ago

As a Linux user I've hated VSCode's ssh. There's lot of annoying things that make it harder to admin for. Like it doesn't pick up the MotD, preventing me from showing users important messages. I've found that it also doesn't reuse sessions (at least by default. TBF, neither does ssh) and I'll find that there's just dozens of open sessions over months from users. I literally had to write a script to boot people...

It would be one thing if the plugin was just a wrapper and people were still expected to know ssh but the plugin abstracts away all that and is intended to make it a "use VSCode on remote machine" tool. So it needs to do more than just handle creds, otherwise it creates a divergent experience while making people think it's just ssh

causal 44 minutes ago | parent [-]

And it’s really opaque. Would be fine if it were an open source package but there’s a lot of mystery behind how it’s implemented.

skissane 35 minutes ago | parent | next [-]

I don't find it that opaque. Even without trying to deobfuscate the obfuscated source code which Microsoft ships (I haven't tried but it wouldn't be hard) a lot of details about how it works become obvious just by reading its logs.

Of course, it is a pity Microsoft doesn't open source it. But there are some well-maintained open source alternatives, e.g. https://github.com/jeanp413/open-remote-ssh and https://github.com/F1yingWhite/fast-remote-ssh (I haven't got around to giving either of them a go–but I really should.)

godelski 39 minutes ago | parent | prev [-]

Exactly! Like if I'm admining a server what am I supposed to do? Message on a big slack channel and have everyone ignore me? It's easy when people are just logging in through normal ssh as I can put a big bright warning message on their screen that they can't ignore.

Also, timeouts...

Also, does anyone know if VSCode supports mosh?

serbuvlad 13 minutes ago | parent [-]

Could just put this in /etc/bashrc.

    if [[ $TERM_PROGRAM = vscode && -f /etc/motd ]]; then
      cat /etc/motd
    fi
Assuming your users use the integrated terminal regularly