From 8302cb87a57eda8252ede1b2eae06d15e519a4cf Mon Sep 17 00:00:00 2001 From: "Kaz Saita(raspi5)" Date: Tue, 9 Apr 2024 18:30:20 +0900 Subject: [PATCH] sync notes(auto) --- content/20240211171220 sshのポートを変更する.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/20240211171220 sshのポートを変更する.md b/content/20240211171220 sshのポートを変更する.md index 89c14b4..9d6bded 100644 --- a/content/20240211171220 sshのポートを変更する.md +++ b/content/20240211171220 sshのポートを変更する.md @@ -14,6 +14,10 @@ x86-64でUbuntu/Debianを使用していて、下記の方法をやるには、 # systemctl daemon-reload # systemctl enable --now ssh.service ``` +これを実行すると、 `/etc/ssh/sshd_config` の設定が反映されるようになる。 +ただしい設定をしたい場合、 +`/usr/share/doc/openssh-server/README.Debian.gz` を参照 + `# Port 22` とコメントアウトされている所があるので、 `#`を削除。 22を別のポートに設定する。