Set up ssh keys, fix bogus CMD and permissions.