OpenSSH is the most popular ssh server for Linux-based systems. It is used to connect server securely from remote systems having ssh clients. this article will help you to install openssh server on Ubuntu and LinuxMint systems.
Install OpenSSH Server
OpenSSH packages are available under default apy repositories for most of the Linux operating systems. Install it using following commands
$ sudo apt-get
update$ sudo apt-get installopenssh-server
OpenSSH main configuration file is /etc/ssh/sshd_config. After successful installing OpenSSH server on your system, you may need to make few changes to secure your server.
- Change Default Port – OpenSSH runs on default port 22. We recommend to change SSH port with other port.
- Disable Root Login – By default root user are allowed to ssh from remote clients, For security purpose we recommend to disable direct root access. Use any non root account for ssh and then switch ( su – ) to root account. To do this add “PermitRootLogin no” in ssh configuration file
For more details visit https://tecadmin.net/5-tips-to-secure-openssh-server/
After making all necessary changes restart openssh server using following command
$ sudo service ssh restart