Merge pull request #167 from brchiu/adapt_for_ssh_deprecated_functions

Modify for avoid deprecated functions of libssh