moul/assh

gateway user and "User gu=..."

jjournet opened this issue · 0 comments

Hello,

using standard ssh config, I need to connect to servers through a Privileged Session Management server (secured jump server), with the following kind of config:

Host target
    Hostname jumpserver
    User "gu=jumpuser@targetuser@targetserver"

the only solution I managed to find with assh was to configure it that way in the yaml:

    target:
      Hostname: targetserver
      User: "\"gu=jumpuser@targetuser@targetuser\""

without the escaped quote, I get an error when converting to .ssh/config and using it.

this is definitely not as elegant as defining target and jump servers separately, and declaring the gateways as an option of target server.
Is there a way to handle this case in standard gateway use case, with a flag perhaps ?

thanks