I'm would like to open an SSH connection between my local machine and an EC2 instance.
I added my local IP (static) with this port to the 'Groups Permissions' but it doesn't work yet.
When I do:
ssh -i .ssh/my_key.pem ubuntu@server_ip -p 8867
It's telling me
ssh: connect to host <server_ip> port 8867: Connection refused.
Am I forgetting something?