I have got it working finally.
-
I have mistakenly remarked
@include common-session
instead of@include common-auth
-
auth requisite
andauth optional
should be above@include common-auth
so as to trigger connection to Vault server -
@include common-auth
must be remarked, or SSH will still fail even successfully verified by Vault server.
(Actually I want the destination server accept both traditional SSH key and also Vault OTP)
- In
/etc/vault-ssh-helper.d/config.hcl
,allowed_cidr_list
must be defined.
Vault ssh cannot connect to remote sucessfully - #8 by liu
Thanks.