以下の内容はhttps://matsudamper.hatenablog.com/entry/2023/03/06/054357より取得しました。


Ubuntuサーバーセットアップ備忘録

更新

apt update 
apt upgrade

sshの設定

/etc/ssh/sshd_config の設定を変更

// 有効化
MaxAuthTries 6
AuthorizedKeysFile .ssh/authorized_keys

.ssh/authorized_keys に公開鍵を追加。sshできるか確認。

/etc/ssh/sshd_config の設定を変更

// 無効化
PasswordAuthentication no

ユーザーの追加と設定。

useradd -m matsudamper
sudo passwd username

# ログイン時のシェルを `/bin/bash` に変更。  
chsh 

.ssh/authorized_keys に公開鍵を追加。sshできるか確認。

/etc/ssh/sshd_config の設定を変更

PermitRootLogin no
matsudamper          ALL=(ALL)       ALL



以上の内容はhttps://matsudamper.hatenablog.com/entry/2023/03/06/054357より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14