Difference between revisions of "Aws ssm start-session"

From wikieduonline
Jump to navigation Jump to search
 
(13 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"
 +
 +
An error ocurred (403) when calling the StartSession operation: Server authentication failed: <UnauthorizedRequest><message>[[Forbidden]].</message></UnauthorizedRequest>
  
 
  aws ssm start-session --target "i-1234567890abcdef0"
 
  aws ssm start-session --target "i-1234567890abcdef0"
  Starting session with SessionId: Jane-Roe-07a16060613c408b5
+
  [[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:
 
  [[ssh -i]] /path/my-key-pair.pem ec2-user@i-02573cafcfEXAMPLE
 
  [[ssh -i]] /path/my-key-pair.pem ec2-user@i-02573cafcfEXAMPLE
 +
 +
== Related ==
 +
* [[Session manager plugin]]
 +
* <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]

See also[edit]

Advertising: