Ubuntu で ssh server
ナビゲーションに移動
検索に移動
デーモンの管理
ssh.socket が有効な場合は無効にして sshd.service を有効にします。
$ sudo systemctl disable ssh.socket $ sudo systemctl enable ssh.service -- sshd.service は ssh.service のシンボリックリンク
sshd.service の設定例
/etc/ssh/sshd_config.d/99-local.conf
Port 2222 PasswordAuthentication no AuthenticationMethods publickey