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

RemoteCommand support within settings instead of default RemoteCommand=none #4388

Closed
kristoferpelchat opened this issue Jan 28, 2021 · 3 comments
Labels
*duplicate Issue identified as a duplicate of another issue(s) ssh Issue in vscode-remote SSH

Comments

@kristoferpelchat
Copy link

kristoferpelchat commented Jan 28, 2021

First off this extension (Remote-SSH specifically) is WONDERFUL! I use it almost exclusively now for remote dev for cloud machines!

Please see this link as it explains quite a bit. You will notice here that there is a workaround for this that I use, and it does work VERY well! However, when I go to a different system I must always remember to do this. You will notice they reference that this works on macOS and Linux. I have tested this on macOS and it works wonderfully. I assume though the created of this is correct in that perhaps it does not work in Windows, hence why it is like this.

It would be WONDERFUL if you could provide some settings to allow usage of RemoteCommand in the ssh config file. Since this doesn't work in Windows is it possible for you to perhaps have a note stating that this only works on macOS and Linux at the moment?

I feel there are other commands that are shutoff too that you could perhaps do the same with, but RemoteCommand is EXTREMELY useful to elevate privileges on the remote machine with a sudo su -, if you are given that right on the system.

I use this AWESOME extension extensively for all my development now as we only develop in containers. Docker on a Mac is STILL a resource hog and we now use AWS machines for all our dev. This plugin allows us to do this but elevating permissions is extremely important as we only run docker-compose` for instance as root.

Please let me know if you need anymore information. I don't even think this needs a UI option, even if there is some property (enable.RemoteCommand) I set in the settings file...that would work better than having to perform this workaround always.

Please also note that I DO NOT remove the bash portion that is in this. I only remove the RemoteCommand so I can use that and elevate permissions.

@github-actions github-actions bot added the ssh Issue in vscode-remote SSH label Jan 28, 2021
@roblourens
Copy link
Member

I was investigating this in #4474, but am still unsure about the potential impact. Removing bash is not really workable however. WHy do you need that?

@roblourens roblourens added the info-needed Issue requires more information from poster label Mar 3, 2021
@kristoferpelchat
Copy link
Author

kristoferpelchat commented Mar 3, 2021

@roblourens I updated my description above. I do NOT perform the bash portion of the workaround here. I only use the RemoteCommand portion and that works beautifully for me. IMHO, that is the only thing that needs to be addressed. Merely the ability to set the RemoteCommand to whatever you choose in your config ssh file (which for me is sudo su - to elevate permissions).

I hope this makes sense and please let me know if not as I am VERY happy to give you any information you need to help me address this. :)

@roblourens
Copy link
Member

roblourens commented Mar 3, 2021

You could test the version of the extension in #4474 (comment) and verify that it works for you. We can continue discussion in that issue.

@roblourens roblourens added *duplicate Issue identified as a duplicate of another issue(s) and removed info-needed Issue requires more information from poster labels Mar 3, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Apr 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

2 participants