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

To SSH to a Centos Server I have to use:

SSH -c aes256-ctr -l myid

How can I make the cipher the default for that server without specifying it on the command line?

share|improve this question

You can set it in your user's ssh config file (if it does not exist, just create it by touch config). Put following line in your user's ssh config file (~/.ssh/config) or in global ssh config file (/etc/ssh/ssh_config):

Cipher <cipher>

And then you should be able to use ssh just like this without specifying cipher:

ssh -l myid
share|improve this answer

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.