Unable to ssh into AWS EMR Master Node due to permission Issues - isgaur/AWS-BigData-Solutions GitHub Wiki
Try doing ssh using -v switch to check what is the real problem - Example
ssh -i ~/test.pem -v [email protected]
Sometimes the permission for the home directory changes , In order to fix it below are the steps :
Step 1: create a shell script named “modifyssh.sh” using vi editor and then add below lines and save the file
chmod 755 /home/hadoop/
Step 2: Copy modifyssh.sh file to S3 location s3://<bucket-name>/Scripts/
Step 3: Add a new EMR step using EMR console Add Step button under Steps section and add a Step
Step 4: Step Type: Custom JAR
Step 5: JAR Location: s3://<region>.elasticmapreduce/libs/script-runner/script-runner.jar
Step 6: For arguments: s3://<bucket-name>/sshkeys/modifyssh.sh
Step 7: Then click on Add to run the step
Verify doing ssh , It should go fine this time.