a couple of fixes needed in some cases
workaround a problem with permissions on ~ec2-user/.ssh/authorized_keys