Fix for update ssh package, see #1019

This PR shoud be merged to fix #1019.
Please review and merge.