エラーコード
root@123.45.67.8: (publickey,gssapi-keyex,gssapi-with-mic).
参考にしようとしたがうまくいかなかった記事たち
https://note.mokuzine.net/ssh-permission-denied/
https://qiita.com/youcune/items/2f427979403771f2e03a
https://hacknote.jp/archives/2225/
結論から言うと
下記の公式のガイドマップを参考にして設定をしたらうまくいきました
つまづいた部分を記載する
①
上記の記事には
vi
で/etc/ssh/sshd_config
という設定ファイルを編集し、PasswordAuthentication
の値をyes
に、ChallengeResponseAuthentication
の値をyes
に変更して保存します。
と書いてあるが、これを「Macのファイルだと勘違いしていた」
=> conohaVPS側のコンソールからrootユーザーでログイン。そちらにて設定を変更した
②
conohaのコンソールでviを起動したはいいが、なぜかMacのように:wq
で終了できない
=> 原因はよくわからないが、上にある「コンソール」ボタんから「シリアル」を選択。ログインして、そちらからvi
を入力したらできた
つまり
公式をまず読んで、まず試す。それが一番大事。