Created
June 10, 2015 09:03
-
-
Save cimmwolf/7d67443c30e10f46b6ac to your computer and use it in GitHub Desktop.
Fix PHPStorm ssh client error "Algorithm negotiation fail"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KEXALGORITHM='KexAlgorithms [email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1' | |
ISSET_KEXALGORITHM=`grep -c "$KEXALGORITHM" /etc/ssh/sshd_config` | |
if [ "$ISSET_KEXALGORITHM" -eq 0 ]; then | |
echo "$KEXALGORITHM" >> /etc/ssh/sshd_config | |
sudo service ssh restart | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For restarting the ssh service on OSX
sudo launchctl stop com.openssh.sshd
sudo launchctl start com.openssh.sshd