virt-manger can't use SSH connections when ASSH_CONFIG is set to non-default value
I'm a big proponent of storing all configuration in XDG_CONFIG_HOME so that HOME stays clean and was pleased to discover that assh's config can be moved there via ASSH_CONFIG_HOME and the --config flag. What I did is adding export ASSH_CONFIG_HOME=${XDG_CONFIG_HOME}/assh/assh.yml to my shell's config file. CLI works as expected, but GUI apps may not all source this file.
When using virt-manager and setting ASSH_CONFIG to something else than ~/.ssh/assh.yml all SSH connections are broken. Other applications may be misbehaving similarly.
This can easily be fixed by manually editing ~/.ssh/config to include the --config flag:
Host *
ProxyCommand assh --config=/home/pschmitt/.config/assh/assh.yml connect --port=%p %h
... but this gets overridden each time assh regenerates the config.
Wouldn't it make sense to make assh add --config=CURRENT_VALUE_OF_ASSH_CONFIG?
Hi @pschmitt, thank you for your feedback,
That's a good idea, I was thinking about something equivalent when looking for a solution to fix #258
I will give a try and ping you back here