Difference between revisions of "Aws ssm start-session"
Jump to navigation
Jump to search
(10 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ssm/start-session.html | 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" | 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: <code>[[brew install session-manager-plugin]]</code> | ||
Connecting: | Connecting: | ||
Line 11: | Line 19: | ||
* [[Session manager plugin]] | * [[Session manager plugin]] | ||
* <code>[[aws ec2 describe-instances]]</code> | * <code>[[aws ec2 describe-instances]]</code> | ||
+ | * [[AWS System Manager Session Manager port forwarding]] | ||
+ | * <code>[[ssm-user]]</code> | ||
+ | * <code>[[ssh-copy-id]]</code> | ||
+ | * <code>[[aws ec2-instance-connect send-ssh-public-key]]</code> | ||
== See also == | == See also == | ||
* {{aws ssm}} | * {{aws ssm}} | ||
+ | * {{AWS SSM}} | ||
[[Category:AWS]] | [[Category:AWS]] |
Latest revision as of 10:44, 26 February 2024
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]
- Session manager plugin
aws ec2 describe-instances
- AWS System Manager Session Manager port forwarding
ssm-user
ssh-copy-id
aws ec2-instance-connect send-ssh-public-key
See also[edit]
- AWS Systems Manager (ASM):
session-manager-plugin
,aws ssm
[get-inventory
|aws ssm parameter
,amazon-ssm-agent
|describe-instance-information
|start-session
|terminate-session
|resume-session | send-command | get-parameter | put-parameter | aws ssm list-instance-profiles | list-command-invocations ]
- AWS Systems Manager Session Manager, port forwarding,
aws ssm start-session
,amazon-ssm-agent
,ssm-installer
Advertising: