fadion / Maneuver

Easily deploy Laravel projects via FTP or SFTP, using Git for versioning
MIT License
174 stars 26 forks source link

Oh snap: Unsupported protocol 'ssh2' #5

Closed emilsgulbis closed 9 years ago

emilsgulbis commented 9 years ago

Hello there!

I have this error after running 'php artisan deploy' to deploy laravel on sftp server.

I've tried 'sftp' instead of 'ssh2', too.

'production' => array( 'scheme' => 'ssh2', 'host' => 'host.com', 'user' => 'name', 'pass' => 'pass', 'path' => '/public_html/', 'port' => 22, 'passive' => true ),

fadion commented 9 years ago

My bad! Protocol should be ssh or sftp, not ssh2. Please try it again and let me know.

emilsgulbis commented 9 years ago

Thanks for fast supporting!

but..

Oh snap: Unsupported protocol 'ssh' Oh snap: Unsupported protocol 'sftp'

fadion commented 9 years ago

Do you have the ssh2 pecl extension installed and enabled? Bridge, the package that Maneuver uses for ftp and sftp transfers depends on that extension. Unfortunately, afaik, there's no better alternative to the pecl extension for ssh operations.

Depending on the system you have, search online for a guide on installing it locally. It shouldn't take more than a few minutes.

I'll make an issue at Bridge for a better error message when ssh2 isn't installed.

emilsgulbis commented 9 years ago

Brew helped me to install ssh2 pecl, but now...

Oh snap: ssh2_connect() expects parameter 2 to be long, string given

Edited: I removed PORT from server details array and everything works.. :)

banago commented 9 years ago

There's something wrong with your configs in this last issue.

fadion commented 9 years ago

@banago ssh2_connect() expects the port as an Int, not String. I'll open a pull request.

emilsgulbis commented 9 years ago

I had int 22 in my config as port

fadion commented 9 years ago

Bridge converted the port to string. It is fixed now: https://github.com/banago/Bridge/blob/master/src/Backend/Ssh2.php#L48