properly quote ssh commands