open-remote-ssh icon indicating copy to clipboard operation
open-remote-ssh copied to clipboard

RemoteCommand

Open pavel-hushcha opened this issue 1 year ago • 2 comments

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'

pavel-hushcha avatar Nov 17 '23 18:11 pavel-hushcha

@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?

qknight avatar Jun 24 '24 15:06 qknight

@qknight , yes, that's correct.

pavel-hushcha avatar Jun 24 '24 16:06 pavel-hushcha