Created
July 5, 2024 06:28
-
-
Save xardit/63c7b5a57f0bc2c58b43e07dee66cf5c to your computer and use it in GitHub Desktop.
Revisions
-
xardit created this gist
Jul 5, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ ## Ubuntu 24 change SSH port ### Steps to change ssh listening port 1. Change stream port ```sh vi /lib/systemd/system/ssh.socket ``` 2. Change port on sshd_config ```sh vi /etc/ssh/sshd_config ``` 3. Restart services ```sh systemctl daemon-reload systemctl restart ssh.service systemctl restart ssh.socket ``` 4. Done