LoginSignup
0
1

More than 3 years have passed since last update.

Mac で Eclipse GitBucket ssh が Algorithm negotiation fail で使えないときの対処

Posted at

最新の pleiades だと最初から、Eclipse_4.6 Neon だと Spring 系プラグインを入れたら、GitBucket からインポートするときに ssh が Algorithm negotiation fail で使えなってしまいました。対処がわかったのでメモ残しておきます。

ssh のパスを確認

$which ssh
/usr/bin/ssh

環境変数に GIT_SSH を追加

$vi .bash_profile
export GIT_SSH=/usr/bin/ssh

暗号の種類追加

$vi /etc/ssh/sshd_config

# AuthorizedKeysFile の次くらい(適当)に以下の行を追加
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

設定を反映

$source ~/.bash_profile

sshd を再起動

$sudo launchctl stop com.openssh.sshd
$sudo launchctl start com.openssh.sshd

Eclipse clean 起動

$[Eclipseインストールディレクトリ]/Eclipse_4.6.3.app/Contents/MacOS/eclipse -clean

これで、ssh チェックアウトできました。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1