You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remote connection never starts any login or interactive shells, so it's impossible to update environment variables (for instance, so code server has correct PATH and DOTNET_ROOT)
#6627
Closed
bavis-m opened this issue
Apr 18, 2022
· 2 comments
Connect to your remote without code server already running
Logs show the extensions invokes ssh as such: ssh -T -D 1472 HOSTNAME bash, which runs bash as a non-login, non-interactive shell. This prevents any startup files from being sourced. (Some versions of bash are supposed to be able to 'detect' ssh and turn on a login shell automatically, but this behaviour can't be relied on, and doesn't seem to happen in my environment)
This extension should run bash as bash --login to enable the appropriate environments, or allow for some sort of custom configuration to setup the dotnet environment.
The text was updated successfully, but these errors were encountered:
Steps to Reproduce:
ssh -T -D 1472 HOSTNAME bash
, which runs bash as a non-login, non-interactive shell. This prevents any startup files from being sourced. (Some versions of bash are supposed to be able to 'detect' ssh and turn on a login shell automatically, but this behaviour can't be relied on, and doesn't seem to happen in my environment)This extension should run bash as
bash --login
to enable the appropriate environments, or allow for some sort of custom configuration to setup the dotnet environment.The text was updated successfully, but these errors were encountered: