ubuntu:ssh:change_the_port
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ubuntu:ssh:change_the_port [2023/06/09 16:05] – created peter | ubuntu:ssh:change_the_port [2025/05/21 09:41] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Ubuntu - SSH - Change the Port ====== | ====== Ubuntu - SSH - Change the Port ====== | ||
- | <code bash> | + | Edit the **/ |
- | sudo vi / | + | |
- | </ | + | |
- | + | ||
- | and change the **Port**: | + | |
<file bash / | <file bash / | ||
Port <change to another port other than 22> | Port <change to another port other than 22> | ||
- | PermitRootLogin no | ||
</ | </ | ||
Line 17: | Line 12: | ||
<code bash> | <code bash> | ||
+ | sudo systemctl restart ssh | ||
+ | |||
+ | or | ||
+ | |||
sudo / | sudo / | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | <WRAP TIP> | ||
+ | **NOTE: | ||
+ | </ | ||
ubuntu/ssh/change_the_port.1686326741.txt.gz · Last modified: 2023/06/09 16:05 by peter