Can't connect my instance to ssh

Can’t create a 3-Node Swarm cluster using docker machine Getting connection timed out error. I have aws instance but when I try to connect ssh “ssh root@ip_address” I get connection times out error.