title: How to login to remote host when home directory is 777ed
body: <p>I did ssh into a remote Ubuntu host (Amazon EC2 instance), then set 777 permission for /home/user. After sometime the connection got closed. Now when I try to do ssh, I get error message <strong>Permission denied (publickey)</strong>. How can I login again?</p>