wordmoveでデータベースをpull / push時、「could not settle on kex algorithm」等のエラーが表記され実行できない

実現したいこと

wordmoveでのデータベースのpull / pushを正常に実行・完了させたいです。

発生している問題・分からないこと

macでdockerを導入しております。(バージョンなどは、下の補足に記述しております)
ターミナルでdockerのwordmoveコンテナに入り、wordmoveでデータベースをpull / push時、

in `negotiate': could not settle on kex algorithm (Net::SSH::Exception)

等のエラーが表記され、正常に実行・完了できません。

SSH公開鍵の設定は済ませております。

エラーメッセージ

error

1remote | mysqldump --host=[secret] --port=3306 --user=xxxxx_xxxxxxxx --password=xxxxxxxxxxxxxxx --result-file="[secret]/wp-content/dump.sql" xxxxx_xxxxxxxx 2Traceback (most recent call last): 3 30: from /usr/local/bundle/bin/wordmove:23:in `<main>' 4 29: from /usr/local/bundle/bin/wordmove:23:in `load' 5 28: from /usr/local/bundle/gems/wordmove-5.2.2/exe/wordmove:6:in `<top (required)>' 6 27: from /usr/local/bundle/gems/thor-0.20.3/lib/thor/base.rb:466:in `start' 7 26: from /usr/local/bundle/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch' 8 25: from /usr/local/bundle/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command' 9 24: from /usr/local/bundle/gems/thor-0.20.3/lib/thor/command.rb:27:in `run' 10 23: from /usr/local/bundle/gems/wordmove-5.2.2/lib/wordmove/cli.rb:91:in `pull' 11 22: from /usr/local/bundle/gems/wordmove-5.2.2/lib/wordmove/cli.rb:39:in `handle_options' 12 21: from /usr/local/bundle/gems/wordmove-5.2.2/lib/wordmove/cli.rb:39:in `each' 13 20: from /usr/local/bundle/gems/wordmove-5.2.2/lib/wordmove/cli.rb:40:in `block in handle_options' 14 19: from /usr/local/bundle/gems/wordmove-5.2.2/lib/wordmove/cli.rb:92:in `block in pull' 15 18: from /usr/local/bundle/gems/wordmove-5.2.2/lib/wordmove/deployer/ssh.rb:48:in `pull_db' 16 17: from /usr/local/bundle/gems/wordmove-5.2.2/lib/wordmove/deployer/ssh/default_sql_adapter.rb:28:in `adapt_remote_db!' 17 16: from /usr/local/bundle/gems/wordmove-5.2.2/lib/wordmove/deployer/ssh.rb:79:in `download_remote_db' 18 15: from /usr/local/bundle/gems/wordmove-5.2.2/lib/wordmove/deployer/ssh.rb:66:in `remote_run' 19 14: from /usr/local/bundle/gems/photocopier-1.4.0/lib/photocopier/ssh.rb:44:in `exec!' 20 13: from /usr/local/bundle/gems/photocopier-1.4.0/lib/photocopier/ssh.rb:71:in `session' 21 12: from /usr/local/bundle/gems/net-ssh-6.1.0/lib/net/ssh.rb:251:in `start' 22 11: from /usr/local/bundle/gems/net-ssh-6.1.0/lib/net/ssh.rb:251:in `new' 23 10: from /usr/local/bundle/gems/net-ssh-6.1.0/lib/net/ssh/transport/session.rb:90:in `initialize' 24 9: from /usr/local/bundle/gems/net-ssh-6.1.0/lib/net/ssh/transport/session.rb:223:in `wait' 25 8: from /usr/local/bundle/gems/net-ssh-6.1.0/lib/net/ssh/transport/session.rb:223:in `loop' 26 7: from /usr/local/bundle/gems/net-ssh-6.1.0/lib/net/ssh/transport/session.rb:225:in `block in wait' 27 6: from /usr/local/bundle/gems/net-ssh-6.1.0/lib/net/ssh/transport/session.rb:190:in `poll_message' 28 5: from /usr/local/bundle/gems/net-ssh-6.1.0/lib/net/ssh/transport/session.rb:190:in `loop' 29 4: from /usr/local/bundle/gems/net-ssh-6.1.0/lib/net/ssh/transport/session.rb:210:in `block in poll_message' 30 3: from /usr/local/bundle/gems/net-ssh-6.1.0/lib/net/ssh/transport/algorithms.rb:184:in `accept_kexinit' 31 2: from /usr/local/bundle/gems/net-ssh-6.1.0/lib/net/ssh/transport/algorithms.rb:244:in `proceed!' 32 1: from /usr/local/bundle/gems/net-ssh-6.1.0/lib/net/ssh/transport/algorithms.rb:380:in `negotiate_algorithms' 33/usr/local/bundle/gems/net-ssh-6.1.0/lib/net/ssh/transport/algorithms.rb:407:in `negotiate': could not settle on kex algorithm (Net::SSH::Exception) 34Server kex preferences: curve25519-sha256@libssh.org,curve25519-sha256 35Client kex preferences: ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1

該当のソースコード

wordmove

1wordmove pull -e production -d

wordmove

1wordmove push -e production -d

試したこと・調べたこと

上記の詳細・結果

エラーコードと思しき文中の「kex algorithm」でググってみました所、「鍵交換アルゴリズム」という単語がちらほら散見されたので、「鍵交換アルゴリズム」でさらにググってみました所、
下記サイト
https://qiita.com/aqmr-kino/items/8c3306ea8022b0d5cbe4
を見つけました。
サイトの三分の一くらいの箇所に、「鍵交換方式(KexAlgorithms)」という項目があり、「設定」として

KexAlgorithms curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1

が記述されております。

(上にも記述しましたが、SSH公開鍵の設定は済ませております。)

ただ、私は、プログラマ・エンジニアとしての技術・知見は、素人のそれと変わりがなく、上記まで調べましたが、これより先どうしていいのか全くわからず、これ以上の進展がありません。

補足

<開発環境>

MacBook Pro
macOS Ventura 13.6.5

【docker バージョン】25.0.3
【Docker Compose バージョン】 v2.24.6-desktop.1

【Docker WordPressコンテナについて】
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"

【PHPについて】
バージョン:8.2.17

【apache2について】
Server version: Apache/2.4.57 (Debian)
Server built: 2023-04-13T03:26:51

【データベースコンテナについて】
mysql Ver 14.14 Distrib 5.7.44, for Linux (x86_64) using EditLine wrapper

【wordmoveコンテナについて】
wordmoveバージョン:5.2.2

コメントを投稿

0 コメント