Below is steps to restrict SSH server (port 22) to only accept strong Ciphers:
- Login to your MX or GW via SSH with admin account
- Switch to root user with command: #admin
- Back up your SSH Server configuration file with command: #cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
- Edit SSH server configuration file with command: #vi /etc/ssh/sshd_config
- Navigate to the bottom of the sshd_config file and modify the content:
From
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc
To
#Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc
Ciphers aes128-ctr,aes192-ctr,aes256-ctr
- Save the file by pressing Ecs one time -> type :wq -> Enter
- Restart SSH service with command: #sshd service restart
- Upon successful service restart, you should see the following message:
- Done
------------------------------
Stefan Sia (csp)
Customer Support Specialist
------------------------------