helper/ssh: convert to InstanceState