aws ssm start-session
(Redirected from Aws ssm start-session --target)
Jump to navigation
Jump to search
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ssm/start-session.html
aws ssm start-session --target "i-1234567890abcdef0" Starting session with SessionId: Jane-Roe-07a16060613c408b5
Connecting:
ssh -i /path/my-key-pair.pem ec2-user@i-02573cafcfEXAMPLE
Errors[edit]
aws ssm start-session --target "i-1234567890abcdef0" An error ocurred (403) when calling the StartSession operation: Server authentication failed: <UnauthorizedRequest><message>Forbidden.</message></UnauthorizedRequest>
aws ssm start-session --target "i-1234567890abcdef0"
SessionManagerPlugin is not found. Please refer to SessionManager Documentation here: http://docs.aws.amazon.com/console/systems-manager/session-manager-plugin-not-found
Solution: brew install session-manager-plugin
aws ssm start-session --target i-1234567890abcdef0 aws: [ERROR]: An error occurred (TargetNotConnected) when calling the StartSession operation: i-1234567890abcdef0 is not connected.
Related[edit]
- Session manager plugin
aws ec2 describe-instances- AWS System Manager Session Manager port forwarding
ssm-userssh-copy-idaws ec2-instance-connect sshaws ec2-instance-connect send-ssh-public-key- AWS instance example with autogenerated ssh key
AmazonSSMManagedInstanceCore- Bastion host
AWS-StartPortForwardingSessionToRemoteHost
See also[edit]
Advertising: