CentOS SSH Installation And Configuration

How do I install and configure ssh server and client under CentOS Linux operating systems? You need to install the following packages (which are installed by default until and unless you removed it or skipped it while installing CentOS)

OpenSSH Server Configuration

Edit /etc/ssh/sshd_config, enter:# vi /etc/ssh/sshd_config To disable root logins, edit or add as follows:PermitRootLogin no Restrict login to user tom and jerry only over ssh:AllowUsers tom jerry Change ssh port i.e. run it on a non-standard port like 1235Port 1235 Save and close the file. Restart sshd:# service sshd restart