Closed ideallical closed 1 year ago
Hi, it should work as is :-)
Can you give some more details e.g.
Ah I see now, I had the wrong key algorithm for my custom key. My bad!
As when I copied id_rsa
and id_rsa.pub
to id_rsa2
and id_rsa2.pub
and used this:
Host i-* mi-*
IdentityFile ~/.ssh/id_rsa2
ProxyCommand ~/.ssh/aws-ssm-ec2-proxy-command.sh %h %r %p ~/.ssh/id_rsa2.pub
StrictHostKeyChecking no
The connection worked too. So, it was the custom key that caused the issue.
The custom key uses is generated with OPENSSH as opposed to the working id_rsa key which uses RSA.
Thanks for this script. It works using the default id_rsa key pair.
However, if I use any other ssh private/public key pair than the default id_rsa, it doesn't seem to work:
Could it be that somewhere in the bottom of the script the custom public key should be added as extra parameter to this command?