0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

terminalからsshでconohaVPSに接続しようとしたら「Permission denied」された

Last updated at Posted at 2020-05-04

エラーコード

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を入力したらできた

つまり

公式をまず読んで、まず試す。それが一番大事。

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?