Specifying ciphers and protocol 2 in .ssh/config

I would like to be able to specify in my .ssh/config file that ssh uses protocol 2 (command line argument -2), and which ciphers to use with it.

The following does not seem to work (I get bad configuration option: Cyphers)

Host X
    HostName Y
    User Z
    Compression no
    Cyphers arcfour,blowfish-cbc
    ControlPath ~/.ssh/%r@%h:%p
    IdentityFile ~/.ssh/seas/id_rsa

Also, how do I know which version of ssh (or OpenSSH) I am using? which ssh or man ssh does not reveal much information.


  • Cyphers should be typed Ciphers
  • To specify a protocol use the syntax: Protocol X where X can 1 or 2 (2 is the default)

Try man ssh_config

Source : Link , Question Author : Amelio Vazquez-Reina , Answer Author : Stéphane Chazelas

Leave a Comment