Score:1

Is it possible to connect through session manager to the instance using SSH from an external source like my desktop. And if so, how

cn flag

I have been clicking through the Session Manager console. Pretty neat.

The next question I have with this - I *think we should be able to connect using SSH from an outside SSH client. Meaning, I have a client on my desktop (The client I use is called Putty). So, is it possible to connect from desktop through session manager instead of having to login to the console?

The end goal for this: In production we have a linux system that an outside marketing company connects to using SSH. Right now, we just have that system accessible to them through a public IP address. It would be more secure to use Session Manager within Systems Manager to do their connections. Session Manager would also allow us to log all activity on the system while they were logged in. But we'll worry about that later.

For now, just need to know if it's possible to connect through session manager to the instance using SSH from an external source like my desktop. And if so, how? )

Score:0
gp flag
Tim

You use Session Manger from your browser, or you can install a CLI Session Manager plugin. I didn't know that one until JScott pointed it out in the comments.

From the desktop you typically use SSH with all the things that go with that - internet gateway, security, routing, security groups, etc.

Oscar De León avatar
la flag
It may be possible to use session manager from the CLI using a plugin. I haven't used it myself, but you can check out the docs at https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ssm/start-session.html
jscott avatar
cn flag
This is not correct, session manager most definitely supports AWS CLI to start a session.
Tim avatar
gp flag
Tim
Thanks @jscott, I've been using session manager for ages and never knew that. I've altered my answer.
Score:0
cn flag

AWS CLI supports session manager, if you install the session manager plugin for CLI. You can start a session from your command line with aws ssm start-session --target [instanceid]. This does not require the SSH key for the instance, but you do need IAM permissions to start a session.

You can also configure your SSH client to tunnel ssh and scp commands through systems manager. This article provides a good set of instructions. If you want to do it this way, you will need the SSH key for the EC2 instance as well as the appropriate IAM permissions.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.