Xserver VPSでDebianサーバ構築/SSHサーバ設定

提供: Medeshima wiki
< Xserver VPSでDebianサーバ構築
2023年4月19日 (水) 13:11時点におけるHosakino (トーク | 投稿記録)による版
ナビゲーションに移動 検索に移動

パスワード認証を無効化

次のファイルに、以下の設定を行う。

  • /etc/ssh/sshd_config
PasswordAuthentication no

次のコマンドを実行する。

$ sudo systemctl reload sshd

その他

known_hosts

削除

$ ssh-keygen -f "/home/mede/.ssh/known_hosts" -R "HOST"