{"action":"closed","issue":{"url":"https://api.github.com/repos/deployphp/deployer/issues/337","labels_url":"https://api.github.com/repos/deployphp/deployer/issues/337/labels{/name}","comments_url":"https://api.github.com/repos/deployphp/deployer/issues/337/comments","events_url":"https://api.github.com/repos/deployphp/deployer/issues/337/events","html_url":"https://github.com/deployphp/deployer/issues/337","id":87655839,"number":337,"title":"Does using ext-ssh2 actually works?","user":{"login":"piotrekkr","id":503782,"avatar_url":"https://avatars.githubusercontent.com/u/503782?v=3","gravatar_id":"","url":"https://api.github.com/users/piotrekkr","html_url":"https://github.com/piotrekkr","followers_url":"https://api.github.com/users/piotrekkr/followers","following_url":"https://api.github.com/users/piotrekkr/following{/other_user}","gists_url":"https://api.github.com/users/piotrekkr/gists{/gist_id}","starred_url":"https://api.github.com/users/piotrekkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piotrekkr/subscriptions","organizations_url":"https://api.github.com/users/piotrekkr/orgs","repos_url":"https://api.github.com/users/piotrekkr/repos","events_url":"https://api.github.com/users/piotrekkr/events{/privacy}","received_events_url":"https://api.github.com/users/piotrekkr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/deployphp/deployer/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/deployphp/deployer/labels/docs","name":"docs","color":"bfd4f2"},{"url":"https://api.github.com/repos/deployphp/deployer/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-06-12T08:27:31Z","updated_at":"2015-08-21T07:37:14Z","closed_at":"2015-08-21T07:37:14Z","body":"Hi,\r\n\r\ntoday I tried using deployer with ssh2 php extension and found two things:\r\n\r\n1. documentation is wrong:\r\n        \r\n        This can only be used with the ssh2 pecl extension.\r\n\r\n        // Switch to ext-ssh2\r\n        set('use_ssh2', true);\r\n\r\n    It should be `set('ssh_type', 'ext-ssh2')`\r\n\r\n2. it does not work\r\n   \r\n    * I'm using Linux Mint 17. \r\n    * I had aleready installed ssh2.so in package `libssh2-php: /usr/lib/php5/20121212/ssh2.so` \r\n    * there is `extension=ssh2.so` in /etc/php5/mods-available/ssh2.ini \r\n    * `php -m` shows `ssh2`\r\n    * I tried installing ssh2 using pecl: `sudo pear install channel://pecl.php.net/ssh2-0.12`, it was successfull and `ssh2.so` file was updated \r\n    * I get errors when using `set('ssh_type', 'ext-ssh2')`\r\n\r\n    \r\n              Executing task deploy:lock_project\r\n            PHP Fatal error:  Class 'Ssh\\Configuration' not found in phar:///home/piotrek/Vhosts/deployer/deployer.phar/src/Server/Remote/SshExtension.php on line 47\r\n            PHP Stack trace:\r\n            PHP   1. {main}() /home/piotrek/Vhosts/deployer/deployer.phar:0\r\n            PHP   2. require() /home/piotrek/Vhosts/deployer/deployer.phar:3\r\n            PHP   3. Deployer\\Deployer->run() phar:///home/piotrek/Vhosts/deployer/deployer.phar/bin/dep:62\r\n            PHP   4. Symfony\\Component\\Console\\Application->run() phar:///home/piotrek/Vhosts/deployer/deployer.phar/src/Deployer.php:91\r\n            PHP   5. Symfony\\Component\\Console\\Application->doRun() phar:///home/piotrek/Vhosts/deployer/deployer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:126\r\n            PHP   6. Symfony\\Component\\Console\\Application->doRunCommand() phar:///home/piotrek/Vhosts/deployer/deployer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:195\r\n            PHP   7. Symfony\\Component\\Console\\Command\\Command->run() phar:///home/piotrek/Vhosts/deployer/deployer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:874\r\n            PHP   8. Deployer\\Console\\TaskCommand->execute() phar:///home/piotrek/Vhosts/deployer/deployer.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257\r\n            PHP   9. Deployer\\Executor\\SeriesExecutor->run() phar:///home/piotrek/Vhosts/deployer/deployer.phar/src/Console/TaskCommand.php:116\r\n            PHP  10. Deployer\\Task\\Task->run() phar:///home/piotrek/Vhosts/deployer/deployer.phar/src/Executor/SeriesExecutor.php:40\r\n            PHP  11. call_user_func() phar:///home/piotrek/Vhosts/deployer/deployer.phar/src/Task/Task.php:66\r\n            PHP  12. {closure:/home/piotrek/Vhosts/deployer/tasks.php:14-17}() phar:///home/piotrek/Vhosts/deployer/deployer.phar/src/Task/Task.php:66\r\n            PHP  13. run() /home/piotrek/Vhosts/deployer/tasks.php:16\r\n            PHP  14. Deployer\\Server\\Remote\\SshExtension->run() phar:///home/piotrek/Vhosts/deployer/deployer.phar/src/functions.php:289\r\n            PHP  15. Deployer\\Server\\Remote\\SshExtension->checkConnection() phar:///home/piotrek/Vhosts/deployer/deployer.phar/src/Server/Remote/SshExtension.php:111\r\n            PHP  16. Deployer\\Server\\Remote\\SshExtension->connect() phar:///home/piotrek/Vhosts/deployer/deployer.phar/src/Server/Remote/SshExtension.php:102\r\n\r\nAm I doing something wrong? Should I Install some extension other than pecl ssh2? Is it some kind of old code which was maybe valid some time ago and not now?"}}