Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to setup the destination server for tooltwist on a cloud but would like to tighten security. One of the things I thought of doing is to change the ssh port other than the default 22. How can I work that out? I am using an AMI Linux.

share|improve this question
up vote 2 down vote accepted

As root user, edit


You will see a commented out line

#Port 22

Uncomment it and change the line to

Port 2023

Save the file. Now, restart the sshd daemon.

service sshd restart
share|improve this answer
Thanks for this. It is now working. – Dexter Cato Oct 15 '12 at 4:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.