Bokep
- Viewed 2k timesanswered Jun 7, 2022 at 18:32
I think the problem is that your proxy command is the aws cli. The JSON output does say that the command succeeded. But you haven't asked for a shell, you just asked for executing an aws command.
According to the AWS docs on SSH sessions through SSM, you pass the aws command as an argument to a shell:
sh for MacOS and Linux (...
# SSH over Session Manager# you may need the region as a parameter to aws, e.g. --region us-east-1host i-*User YourUsernameProxyCommand sh -c "aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'"Content Under CC-BY-SA license ProxyCommand sh -c "aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'". In my case, in PowerShell, since I have to use many AWS accounts, I specify the right AWS profile in the proxy command: # SSH over Session Manager on a specific hostname.
Explore further
- Question & Answer
WEBJan 11, 2022 · ProxyCommand sh -c "aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'". Add permissions to role/user that you are using to …
5. Enable SSH Through Session Manager :: AWS Cloud Security …
SSH using AWS SSM Session Manager | Ruan Bekker's Blog
Using AWS Session Manager with Enhanced SSH and SCP …
Restrict AWS SSM access to SSH only - Server Fault
SSH ProxyCommand with AWS Session Manager - no shell started
SSH over AWS SSM | CarriageReturn.Nl
start-session — AWS CLI 2.15.43 Command Reference
SSH and SCP with AWS SSM - DEV Community
Jumping SSH Hosts – oooops.dev
qoomon/aws-ssm-ec2-proxy-command - GitHub
Configuring SSM Agent to use a proxy (Linux) - AWS Systems …
VSCode Remote to EC2 instance (via SSH over SSM) #941
Can't get SSH connections through AWS Session Manager working
- Some results have been removed