ssh/scp wrapper to find host efficiently