Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhpStorm: Algorithm negotiation fail

I've a remote server where I host my projects. And I'm using my PhpStorm locally, so every time I save, it synchronizes automatically with the remote server.

However, I failed to configure PhpStorm to run PHPUnit on the remote server.

Under Configure Remote PHP Interpreter I fill out the right information (Host, User name, and Password).

The error I'm having is "Algorithm negotiation fail" when I validate and "Test SFTP Connection: Connection to 'id address' failed. Connection failed" when I try to specify the path of PHP interpreter.

How do I fix that ?

like image 216
smarber Avatar asked Feb 19 '15 17:02

smarber


2 Answers

Just upgraded Ubuntu to 16.04 and encountered this issue, the "Algorithm negotiation fail" in PHPStorm 8.0.3.

The problem is with the jsch-0.1.51.jar library. If you overwrite the jsch-0.1.51.jar file with the latest from https://sourceforge.net/projects/jsch/ (currently jsch-0.1.54.jar) and restart, it should be fine. No need to add insecure algorithms to your ssh daemon.

like image 64
C. Harley Avatar answered Sep 19 '22 02:09

C. Harley


edit this file :

sudo /etc/ssh/sshd_config 

add this line :

KexAlgorithms diffie-hellman-group1-sha1

and restart :

sudo systemctl restart sshd

It works for me!

like image 40
Biker974 Avatar answered Sep 18 '22 02:09

Biker974