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 install openssh-server
Configure OpenSSH
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.
Port 2222
- 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
PermitRootLogin no
For more details visit
https://tecadmin.net/5-tips-to-secure-openssh-server/Restart OpenSSH
After making all necessary changes restart openssh server using following command
$ sudo service ssh restart
Thanks for Visit Here
Comments
Post a Comment