Open pavel-hushcha opened 11 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?
@qknight , yes, that's correct.
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'