aws ssm start-session

From wikieduonline
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
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

Connecting:

ssh -i /path/my-key-pair.pem ec2-user@i-02573cafcfEXAMPLE

Related[edit]

See also[edit]

Advertising: