「Xserver VPSでDebianサーバ構築/SSHサーバ設定」の版間の差分

提供: Medeshima wiki
ナビゲーションに移動 検索に移動
編集の要約なし
編集の要約なし
17行目: 17行目:
= その他 =
= その他 =


== SSHキー作成 ==
= known_hosts =

<nowiki>
$ ssh-keygen -t ed25519 -C "example@example.com" -f id_ed25519_example
</nowiki>

== known_hosts ==


削除
削除

2024年6月1日 (土) 13:46時点における版

パスワード認証を無効化

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

  • /etc/ssh/sshd_config
PasswordAuthentication no

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

$ sudo systemctl reload sshd

その他

SSHキー作成

$ ssh-keygen -t ed25519 -C "example@example.com" -f id_ed25519_example

known_hosts

削除

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