how to communicate Password less two ec2 instances on aws

Passwordless Two instances RHEL
  • post-author-pic
    Sean G
    09-24-2018

    You could setup ssh keys. That's covered in the RHCSA course among other places.

  • post-author-pic
    infoavdhesh088
    09-25-2018

    I need between to the AWS EC2 instances.


  • post-author-pic
    Michael M
    09-25-2018

    The 2 Ec2 instances would need to be able to see each other on the network. This means that you would need to have them in the same VPC and/or have whitelisting in place to allow that. Once this is done you would, as Sean suggested, set up SSH keys to allow that communication. This is effectively the same process that you would use for on prem servers and though the steps are a bit abstract they are essentially the same. 

    Setup networking to allow traffic
    Setup accounts to allow communication

  • post-author-pic
    infoavdhesh088
    09-26-2018

    .How to access one ec2 instance from another ec2 instance without using the password with the help of SSH. I have created two instances with the same vpc and same .pem file. then added the user with the name of "Cloudlinux" and set the password for this user on both instances.

    Cloudlinux@Server1} ssh Cloudlinux@server2hostname // I m getting the error.

    $ ssh-copy-id -i ~/.ssh/id_rsa.pub Cloudlinux@XXXX.compute-1.amazonaws.com Permission denied (publickey).

Looking For Team Training?

Learn More