Skip to content

control-c causes yori prompt to come back while background interactive session still running #37

@mattgillard

Description

@mattgillard

My scenario is using the aws cli and session manager to login to a remote host.
I use: >aws ssm start-session --target i-
Everything works fine until i hit control-c - then the yori prompt comes back interleaved with my remote session even though my aws session is still active:

ssm-user@ip-10-0-3-189:/var/snap/amazon-ssm-agent/1565$
C:\Users\matt\OneDrive\Documents\dev>
ssm-user@ip-10-0-3-189:/var/snap/amazon-ssm-agent/1565$
C:\Users\matt\OneDrive\Documents\dev>

Situation is unusable until i go into a second session and kill my first one with aws ssm terminate-session. Then i can re-connect fine. Its like yori took control of my control-c and thought i wanted to terminate the aws ssm process but it doesnt realise it is an interactive session?

Using ssh is fine - control-c works as expected.
aws ssm start-session works as expected in a cmd.exe session.

thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    externalThe ideal change is in another component

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions