Welcome to Server Circle. It's a friendly site and all levels of experience are welcome. Be aware that we use cookies for your login.
Server Circle - Ask questions about Servers and get answers from experts.
Beta (0.49 sec)
Changing the SSH Server Port Number in Debian

How do I alter which port SSH runs on to stop port 22 spam traffic?
Asked by:
smoola
25 points
 Report Abuse
 Share Page - Category: Debian Linux - Tags: Changing the SSH Server Port Number in Debian
 Enter your response
Please use Pastie.org to paste lengthy code or to fix formatting issues with code
  • Responses in reverse (2)

Best Answer

Vi /etc/sshd_config

#Port 22 change to Port 220

save file

/etc/init.d.sshd restart


Response by:
mohamad_kian
1548 points
Edit /etc/ssh/sshd_config

change port number(22) to a free port( less than 1024)

any reason for changing ?

Response by:
jalal
3623 points


  • Related Questions
About Us : Contact Us : Etiquette : Terms : CDN Failover : ShorterURL : CDN Fallback : © 2013 Server Circle