in reply to
Check host
Have you considered the ControlMaster option? This would allow you to have multiple ssh calls which you then can format per command. But under the hood you still have only one ssh session.
Comment on
Re: Check host
In Section
Seekers of Perl Wisdom