I'm having this weird problem were I get locked out of the instance after a few minutes with:
Permission denied (publickey).
This happens with either password or keys configured. This looks like exactly the setup I need but ssh going away is a deal breaker :-)