...
- Generate EC2 Key
- If you has EC2 key, you can skip this step.
- In the EC2 VM, generate key by using
Code Block ssh-keygen
- Hence, we get id_rsa (private key) & id_rsa.pub (public key)
- Store into the folder in home/accountnumber/.ssh => /home/username/.ssh/filename
Code Block mv id_rsa.pub authorized_keys
- Move the private key into ubuntu
- Download id_rsa from local
Code Block scp root@1.1.1.1:/pwd ./
- Connect to EC2:
...