jeanp413 / open-remote-ssh

VSCode Remote Development: Open any folder on a remote machine using SSH.
MIT License
297 stars 40 forks source link

RemoteCommand #119

Open pavel-hushcha opened 11 months ago

pavel-hushcha commented 11 months ago

Does the extension have the ability to process RemoteCommand? Like this: RemoteCommand echo '#!/bin/bash' >> /home/ops/askpass.sh && echo "echo 'user'" >> /home/ops/askpass.sh && chmod +x /home/ops/askpass.sh && export SUDO_ASKPASS="/home/ops/askpass.sh" && sudo -Ai bash -c 'rm /home/ops/askpass.sh && /bin/bash'

qknight commented 4 months ago

@pavel-hushcha you want to set an environment variable on the destination host using an interactive query on the shell and then spawn a bash using this 'extended' environment, right?

pavel-hushcha commented 4 months ago

@qknight , yes, that's correct.