ubuntu:ssh:change_the_port
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:ssh:change_the_port [2025/05/21 09:38] – peter | ubuntu:ssh:change_the_port [2025/05/21 09:41] (current) – peter | ||
---|---|---|---|
Line 5: | Line 5: | ||
<file bash / | <file bash / | ||
Port <change to another port other than 22> | Port <change to another port other than 22> | ||
- | PermitRootLogin no | ||
</ | </ | ||
Line 13: | Line 12: | ||
<code bash> | <code bash> | ||
+ | sudo systemctl restart ssh | ||
+ | |||
+ | or | ||
+ | |||
sudo / | sudo / | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | <WRAP TIP> | ||
+ | **NOTE: | ||
+ | </ | ||
ubuntu/ssh/change_the_port.1747820286.txt.gz · Last modified: 2025/05/21 09:38 by peter