SFTP hook input arguments should be alined with SSH hook so that it can use SSH connections.
GitHub Pull Request #3945
GitHub Pull Request #4085