I am following the steps mentioned in the ADM 2000 Lab guide. Everything is working fine till the point where I create ssh keygen. But when I try to ssh-copy-id to other machines I keep getting timeout exception shown below.
root@ip-172-31-25-127:~# ssh-copy-id firstname.lastname@example.org
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: ERROR: ssh: connect to host 22.214.171.124 port 22: Connection timed out
I am using AWS EC2 instances with ubuntu 14.04.
anyone please help me with what am I doing wrong.