问题描述

Windows上ssh登录Virtubox的Ubuntu虚拟机时报错:

kex_exchange_identification: read: Connection aborted。

原因分析

查看ssh状态发现openssh server未安装(Ubuntu默认安装openssh client),导致无法ssh访问虚拟机。

$ sudo service ssh status
Unit ssh.service could not be found.

解决办法

在虚拟机上安装ssh server(ssh服务端)并启用。

sudo apt install openssh-server
sudo service ssh start
Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐