I'm wanting to change port 22 to something else. I came across these steps to secure Ubuntu. Would this break Zimbra?
Code:
* Create Key Pair
- run: ssh-keygen
- passphrase: WHATEVERYOUWANTHERE
- run: cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
- run: rm ~/.ssh/id_rsa.pub
* Move Key to Local Machine
* Configure SSHD on Server
- run: sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.factory-defaults
- run: sudo chmod a-w /etc/ssh/sshd_config.factory-defaults
- run: sudo vi /etc/ssh/sshd_config
****MAKE THESE CHANGES****
Port 22 ---> Port ****
PermitRootLogin yes ---> PermitRootLogin no
#PasswordAuthentication yes ---> PasswordAuthentication no
#Banner /etc/issue.net ---> Banner /etc/issue.net
UsePAM yes ---> UsePAM no
***Add To Bottom***
AllowUsers YOURUSER
- run: sudo /etc/init.d/ssh restart