fadion / Maneuver

Easily deploy Laravel projects via FTP or SFTP, using Git for versioning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Oh snap: Unsupported protocol 'ssh2'

emilsgulbis opened this issue · comments

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
),

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

Thanks for fast supporting!

but..

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

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.

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.. :)

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

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

I had int 22 in my config as port

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