-
Issue
MySQL Workbench から、SSH接続しようとすると”Access denied for 'none'. Authentication that can continue: publickey”と言われる。。。
-
原因
SSHのKeyをmacで作成したために、Keyの形式が問題らしい。
(参考)Thanks a lot!!
WorkBenchでDBサーバーにSSH接続できないって? - Solution
Windowsが、手元になかったので、macでのやり方をメモ - putty をインストール
- puttygem で、.ppk ファイルを作成
- puttygem で、オプションprivate-openssh を指定して作成
- そのKeyをセットアップすると接続!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
# putty をインストールする -> % brew install putty Updating Homebrew... # この中の −0の private-openssh で最終的にKeyを作る -> % puttygen -h PuTTYgen: key generator and converter for the PuTTY tools Release 0.73 Usage: puttygen ( keyfile | -t type [ -b bits ] ) [ -C comment ] [ -P ] [ -q ] [ -o output-keyfile ] [ -O type | -l | -L | -p ] -t specify key type when generating (ed25519, ecdsa, rsa, dsa, rsa1) -b specify number of bits when generating key -C change or specify key comment -P change key passphrase -q quiet: do not display progress bar -O specify output type: private output PuTTY private key format private-openssh export OpenSSH private key <- これを使う!!! private-openssh-new export OpenSSH private key (force new format) private-sshcom export ssh.com private key public RFC 4716 / ssh.com public key public-openssh OpenSSH public key fingerprint output the key fingerprint -o specify output file -l equivalent to `-O fingerprint' -L equivalent to `-O public-openssh' -p equivalent to `-O public' --old-passphrase file specify file containing old key passphrase --new-passphrase file specify file containing new key passphrase --random-device device specify device to read entropy from (e.g. /dev/urandom) # まず、Putty形式のKeyを作成する 拡張子.ppk で保存 -> % puttygen id_rsa -O private -o id_rsa.ppk Enter passphrase to load key: # で、そのファイルを -O private-openssh で、再度OpenSSHの古い形式で保存 -> % puttygen id_rsa.ppk -O private-openssh -o id_rsa_mysqlWB Enter passphrase to load key: # これで、 private key file "id_rsa_mysqlWB" が、完成 - 編集後記
MacでMySQL Workbenchを使う人は、少ないのかな?調べるのに時間かかってしまった。
Oracle Application Express Notes | Apps development Notes | Google Cloud Platform | Python | apps test | Cool Beans | English | Books
2020/06/07
MySQL Workbench から、SSH接続しようとすると”Access denied for 'none'. Authentication that can continue: publickey”エラーになる
登録:
コメントの投稿 (Atom)
0 件のコメント:
コメントを投稿