Skip to content

Instantly share code, notes, and snippets.

@scoutman57
Forked from cimmwolf/fixPHPStormSSH.sh
Created November 2, 2016 01:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scoutman57/da3c2ffdfff1ec26f22e683646a0bf20 to your computer and use it in GitHub Desktop.
Save scoutman57/da3c2ffdfff1ec26f22e683646a0bf20 to your computer and use it in GitHub Desktop.
Fix PHPStorm ssh client error "Algorithm negotiation fail"
KEXALGORITHM='KexAlgorithms curve25519-sha256@libssh.org,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