Open5

Mac Mini M4 Proをサーバー化する

Shoma NishitatenoShoma Nishitateno

sshd_configの設定

sudo vim /etc/ssh/sshd_config

以下3行を追加

PasswordAuthentication no
PubkeyAuthentication yes
ChallengeResponseAuthentication no
Shoma NishitatenoShoma Nishitateno

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.