Open5
Mac Mini M4 Proをサーバー化する
公開鍵・秘密鍵の設定
sshd_configの設定
sudo vim /etc/ssh/sshd_config
以下3行を追加
PasswordAuthentication no
PubkeyAuthentication yes
ChallengeResponseAuthentication no
sshdの再起動。一応2コマンド打っておく
sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist&&sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
sudo launchctl stop com.openssh.sshd
# これが出るけど ⇢ Not privileged to stop service.
サービスはdockerで動かし、SSL証明書もいい感じにしたい。
nginxproxy/acme-companion を使っていたけど、Traefik というのもあるらしい
https://docs.dify.ai/ja-jp/getting-started/install-self-hosted/docker-compose をみると、difyのdocker-compose.yml自体でもSSL証明書を取得したりしてる。
サーバー全体でnginxがあるので競合しそう