Support Amazon Linux for ssh (#51)

This is #51 rebased on top of the latest master.