For accessing aws ec2 instances behind nat/fw add this lines ~/.ssh/config:
Host i-* mi-*
ProxyCommand sh -c "aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'"
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
User ubuntu
LogLevel ERROR
DynamicForward 5060
Usage: `ssh -i key.pem i-0xxxxxxxxxx`. Last config line can be used for optional proxy browsing.