make ssh share mode configurable