Tuesday, August 11, 2020

Not able to connect ssh - for AWS server - (error). - keypair.perm permission deny OR keypair.pem does not exist?

 


Solution to below issue ( in Mac)


Could not find /Users/keypairs/key-pair.pem

Connecting to: server  at IP 90.xx.x.xxx with keypair key-pair

Warning: Identity file /Users/key-pair.pem not accessible: No such file or directory.

ec2-user@90.xx.x.xxx : Permission denied (publickey).



Try this :
1. In terminal - Go to the path where the "key-pair.pem" is sitting.
2. Check the permissions - just why typing the command - 
            c:/Users/keypairs>   ls -la
3. Run the command - 
          c:/Users/keypairs>   chmod 400
or       c:/Users/keypairs>  chmod 600



This should resolve the issue-- At least this worked for me!



No comments:

Post a Comment

Health Benefits of Cashews

  Benefits of Cashews. Healthy food is an integral part of healthy body. Regular exercises such as Yoga and healthy diet is important to...