LoginSignup
0

More than 1 year has passed since last update.

authorized_keysをリネームしてしまってログインできなくなった!笑

Last updated at Posted at 2021-04-18

環境

ConoHaVPS

はじめに

今週vpsをはじめたのですが、公開鍵を追加しようとして「新しい公開鍵を追加するのにこのファイル名じゃ分かりづらいな~よし!わかりやすい名前に変更いしょう!」と何の躊躇もなくauthorized_keysリネームしてauthorized_key_wslとかにしました。
はい、ログインできません。なぜなら、rootログイン不可、パスワードログイン不可にしており、鍵認証方式でないとログインできない設定にしていました!٩(๑òωó๑)۶ おやすみー

一応解決

vpsプロバイダのコンソールアプリからrootログインできるので(以下省略)

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