今天安装了vmware,同时安装了ubuntu虚拟机,在通过SecureCRT连接虚拟机时,报错
The remote system refused the connection.
然后就开始检查ubuntu系统的配置,发现是因为没有开启ssh服务导致的,写下解决方案做个记录
在虚拟机安装ubuntu时,默认是不开启ssh服务的
ssh localhost
1、安装ssh服务
sudo apt-get install openssh-server
2、启动ssh服务
sudo /etc/init.d/ssh start
3、查看当前状态
ps -e|grep ssh
再次远程连接