-
Notifications
You must be signed in to change notification settings - Fork 217
phpseclib error - connection failed #755
Comments
What version of rocketeer do you use? Maybe you should try to update it. Also check if you have passphrase in your keys. |
I have the same problem and it occurs regardless of whether using username/password authentication or key/passphrase authentication. I'm running version 2.2.5. |
I'm suspicious that the issue is related to the age of some of the Rocketeer dependencies. Rocketeer depends on illuminate/remote ~4.2 which in turn depends on phpseclib/phpseclib 0.3.* , however the current version of phpseclib is 2.0.6. I'm wondering whether perhaps the SSH server I'm connecting to requires a key exchange algo that is not supported by phpseclib 0.3.* but might be supported by a newer version. Unfortunately, since it's illuminate/remote which specifies this dependency I'm not sure what can be done. |
It looks like the above is the case: the SSH server I'm connecting to (which I have no control over, unfortunately) doesn't support anything weaker than diffie-hellman-group-exchange-sha256 but phpseclib didn't implement support until after version 0.3.10 (it's in phpseclib/phpseclib#714). |
+1 |
1 similar comment
+1 |
Hm, the project illuminate/remote seems to be dead. Is there a plan to move away from or continue developing it? Or can anybody provide a manual quickfix for this issue? I've searched for the phrase "phpseclib/phpseclib" within a composer.json on my system but couldn't find it. Pretty odd - where does illuminate/remote hide itself locally? |
I had the same issue and solved it by manually forking illuminate/remote and updating it with a recent version (2.*) of phpseclib. I also created a fork of rocketeer 2.2.5 to use my patched library. This works fine for me. I published the forks on github, feel free to use them AT YOUR OWN RISK or create your own forks until rocketeer comes up with a permanent solution (v3 development branch seems to be working without the illuminate/remote library). I added these dependencies to my projects composer project:
ps. If someone cared to create real packages, that would be an even better quickfix. |
I get the following error when running rocketeer deploy:
PHP Notice: No compatible key exchange algorithms found in phar:///usr/local/bin/rocketeer/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php on line 1359
followed by a
Rocketeer\Exceptions\ConnectionException
I had no issue deploying a few weeks back but now I get this error regardless of the environment & version of rocketeer that I use. Is it an issue with the server I'm deploying to or the place I'm deploying from? I'm able to SSH in from my terminal fine
The text was updated successfully, but these errors were encountered: