Method steps for installing and configuring SSH service under Ubuntu 18.04

Install ssh tool

  1. Open the terminal and type the following command:
apt-get update
apt-get install openssh-server
  1. Select Y to continue execution:

Start SSH service

  1. Type the following command:
/etc/init.d/ssh start

Note: The restart and shutdown commands are as follows:

/etc/init.d/ssh restart #Restart the SSH service
/etc/init.d/ssh stop #Turn off SSH service
  1. View the process, check whether the startup is successful, type the following command:
ps -e | grep sshd

Only a process can use the SSH service.

Configure root user SSH service

After installing the SSH service in Ubuntu, check whether the root user is allowed to log in. If it is not allowed, the root user cannot be logged in remotely, and the configuration needs to be modified

  1. First, open "/etc/ssh/sshd_config"
gedit /etc/ssh/sshd_config
  1. Check if there is "PermitRootLogin yes", no add it, save and exit after completion

So far, this article on the method and steps of installing and configuring the SSH service under Ubuntu 18.04 is introduced. For more related Ubuntu 18.04 installation of SSH service content, please search for previous articles of ZaLou.Cn or continue to browse the related articles below. Hope Everyone will support ZaLou.Cn a lot in the future!

Recommended Posts

Method steps for installing and configuring SSH service under Ubuntu 18.04
Open SSH service under Ubuntu
Open SSH service under Ubuntu
Ubuntu opens SSH service for remote login and file transfer
Detailed steps for installing Django under Python 3.6 in Ubuntu 16.04 environment
Steps to add toolkit for Matlab_Linux under ubuntu
Installing CentOS 6 and SSH configuration under Windows 8 Hyper-V
[python] python2 and python3 under ubuntu
Cpp web (1) Install and use Crow service under Ubuntu
There is no solution for Chinese input method under ubuntu
DNS service construction under Ubuntu
Use QQ under Ubuntu 13.10, suitable for 14.10
ubuntu20.04 Chinese input method installation steps
Windows10 update Ubuntu20.04 LTS method steps
Ubuntu 20.04 Shuangpin input method installation steps
Install and deploy Gerrit under Ubuntu
Redis installation under ubuntu and windows
Install nodejs and npm under Ubuntu 16.04
Ubuntu change password and username steps
Coexistence of CUDA8.0 and CUDA9.0 under Ubuntu 16.04
Compile and install QEMU under Ubuntu
Windows Ubuntu subsystem ssh and ftp
Ubuntu19.10 open ssh service (detailed process)
Detailed tutorial on installing python3.7 for ubuntu18
ubuntu16.04 method steps to upgrade the kernel
51 MCU program development and download under Ubuntu
Solution for Postgresql uninstall error under Ubuntu
JDK environment variable configuration method under ubuntu
Installation and uninstallation of CUDA under Ubuntu 16.04
Install YouCompleteMe plugin for vim under Ubuntu
Ubuntu install PHP and PHP Nginx configuration method
Detailed tutorial for installing CUDA9.0 on Ubuntu 16.04
Graphical tutorial for installing JDK1.8 under CentOS7.4
Install PyTesser under ubuntu 14.04 for OCR recognition
Detailed tutorial for installing phpMyAdmin on Ubuntu 18.04
DLNA/UPnP Server installation and configuration under Ubuntu 12.04
Graphical tutorial for installing Pycharm 2020.1 in Ubuntu 20.04
Configure node js and npm under Ubuntu 14.04