--- tags: Linux --- # CentOS SSH port changing 1. Changing sshd_config echo "Port 2222" >> /etc/ssh/sshd_config or vi /etc/ssh/sshd_config 2. Configure firewall firewall-cmd --permanent --remove-service=ssh firewall-cmd --permanent --add-port=2222/tcp firewall-cmd --reload 3. Restart SSH service systemctl restart sshd.service 4. Check SSH status systemctl status sshd.service
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up