replace legacy code to open ssh2 preferences