Automating sudo password confirmation in Royal TSX 184.108.40.206+
In iTerm2 connection properties choose 'Triggers' and add new trigger:
Action: send text
Regular expression: ^\[(sudo)\]\s(password)\s(for)\s($EffectiveUsername$)\:\s$(?!.)(?!\n)
Enable "Instant" checkbox
Regular expression made for common linux sudo prompt, and will start to work in next connection.
just tested against an Ubuntu Server. Works perfectly!
thx for sharing,