Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
Labels
info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH

Comments

@bavis-m
Copy link

bavis-m commented Apr 18, 2022

  • VSCode Version: 1.66.2
  • Local OS Version: 10.0.19044 Build 19044
  • Remote OS Version: Slackware 14.2+ (linux kernel 5.10.28)
  • Remote Extension/Connection Type: SSH
  • Logs: https://pastebin.com/J6wr7vXB

Steps to Reproduce:

  1. Setup an SSH remote.
  2. Connect to your remote without code server already running
  3. 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.

@bamurtaugh bamurtaugh added the ssh Issue in vscode-remote SSH label Apr 18, 2022
@bamurtaugh
Copy link
Member

Thanks for filing. I believe this is a duplicate of #1671? If so, we can close this issue and track there.

@bamurtaugh bamurtaugh added the info-needed Issue requires more information from poster label Apr 18, 2022
@bavis-m
Copy link
Author

bavis-m commented Apr 18, 2022 via email

@bavis-m bavis-m closed this as completed Apr 18, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jun 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

2 participants