Ubuntu 18.04远程登录服务器--ssh的安装和配置

输入sudo apt-get update,然后回车。这样可以更新一下列表

 sudo apt-get install openssh-server,点击回车,这样就可以安装ssh。

 sudo ps -e |grep ssh,我们查看是否已经开启了服务,如果有ssd,证明已经开了

 没有开启,输入sudo service ssh start就可以开启

 输入sudo ifconfig就可以看到这台主机的IP地址,记录一下。

原文地址:https://www.cnblogs.com/-mrl/p/12166745.html