How to install or update OpenSSH server on Ubuntu and LinuxMint

不言
Release: 2019-03-14 10:19:04
Original
3945 people have browsed it

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.

How to install or update OpenSSH server on Ubuntu and LinuxMint

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
Copy after login

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
Copy after login

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!