moul/assh

error with -o option

tonywl opened this issue · 1 comments

ssh with assh (aliased as assh wrapper ssh) does not work with -o option, for example

$ command -v ssh
alias ssh='assh wrapper ssh'

$ ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null <IP>
Error: unknown shorthand flag: 'o' in -o
Usage:
  assh wrapper ssh [flags]

Flags:
      --1
      --2
      --4
      --6
      --A
      --C
      --D strings
      --E strings
     ...

I do put ssh options in the configuration file (thanks to assh, it is very convenient), but I need to run ssh -o on some ephemeral
IPs.

Is this a known issue? any suggestion on how to handle this?

Thanks

The issue is resolved by aliasing ssh to assh wrapper ssh --.