用filezilla,putty尝试连接,都是connection refused. 查了一下应该是ssh服务没有开启,基本按此文章的套路来解决了:
新装的虚拟机没有安装ssh服务,怎么确定没有安装ssh服务呢,你可以运行一下命令:
service sshd start
当出现以下结果时,及说明你的虚拟机没有安装ssh服务
Unit sshd.service not found
此时你需要运行以下命令安装ssh服务:
sudo apt-get install openssh-server