Ssh into container based application

i have an open source application running as a container image in AWS EC2 instance. If I want to connect Cursor to the container image, what is the best to go about it?