OpenSSH is a free tool widely used for remote login on Linux systems. It uses the ssh/secsh protocol suite to provide encryption for network services. Its source code is free to everyone. This article will introduce you to installing or updating OpenSSH server on Ubuntu and LinuxMint systems.
Features of OpenSSH
Open Source Project
Free License
Strong Encryption (3DES , Blowfish, AES, ArcFour)
x11 forwarding (encrypted x window system traffic)
Port forwarding (encrypted channel for traditional protocols)
Strong authentication (public key, One-Time Password and Kerberos Authentication)
Proxy Forwarding (Single Sign-On)
Data Compression
Step 1: Install/Update OpenSSH Server
OpenSSH Server packages are available in the default apt repository under all versions of the operating system. The latest OpenSSH server can be installed or updated using the following commands.
$ sudo apt-get update $ sudo apt-get install openssh-server
Step 2: Start/stop OpenSSH service
After installing openssh latest package from default apt repository. The opened ssh server will start automatically. However, if you need to start, stop or restart the OpenSSH server from the command line, you need to use the following commands.
$ sudo service ssh start $ sudo service ssh stop $ sudo service ssh restart
Step 3: Open the firewall port
If you use iptables to protect the server, you need to use the following command to open the port for ssh access.
$ sudo iptables -A INPUT -s 192.168.1.0/24 -p tcp --dport 22 -j ACCEPT
If you use UFW to manage the firewall, you need to use the following command.
$ sudo ufw allow from 192.168.1.0/24 to any port 22
This article has ended here. For more exciting content, you can pay attention to other related column tutorials on the php Chinese website! ! !
The above is the detailed content of How to install or update OpenSSH server on Ubuntu and LinuxMint. For more information, please follow other related articles on the PHP Chinese website!