To connect aws cluster (EMR or EC2) via terminal on mac .
First make sure you download pem file from aws account.
Once file has been downloaded save it on any location and give permission as 600 , Giving permission is important as with 777 or other permission it may create an issue and won't be able to connect to cluster.
command to run :
$ ssh -i <absolute path to pem file> user@ip
(ip in aws is given as xx-xx-xxx-xxx be sure to change it in ip format ie xx.xx.xxxx.xxxx )
Comentarios