do correct way of sed over ssh