Open ssh service first need to install open ssh library services:
sudo apt-get install openssh-server
Check the current situation of open ssh:
ps -e | grep ssh
If you have sshd, the ssh-server has been started; if only the agent, it has not yet started;
open ssh service:
/etc/init.d/ssh start
If want to start or restart ssh, ssh then modify the configuration and restart the service:
vi /etc/ssh/sshd_config
You can see the configuration file, you can modify according to demand;
reboot ssh:
/etc/init.d/ssh restart sudo
---------------------
Author: Han Xiang
Source: CSDN
Original: https: //blog.csdn.net/ qq_38228254 / article / details / 78543840
copyright: This article is a blogger original article, reproduced, please attach Bowen link!