sshでパスワードログインとルートログインを禁止する

sshでパスワードログインとルートログインを禁止する
サーバの再設定をする機会があったので載せておきます。
参考:
ネコでもわかる!さくらのVPS講座 ~第二回「サーバーをさわってみよう!」
パスワード認証を禁止
設定
ファイルを開く
vi /etc/ssh/sshd_config
パスワードログインを禁止
PasswordAuthentication yes → PasswordAuthentication no
ルートログインを禁止
#PermitRootLogin yes → PermitRootLogin no
ディスカッション
コメント一覧
まだ、コメントがありません