问题描述
在用 FinalShell 连接 Ubuntu 虚拟机时,出现java.net.ConnectException: Connection refused: connect
错误。
问题解决
因为Ubuntu刚刚安装好系统,系统中缺乏openssh-server这个包,只需要在Ubuntu中输入安装命令:
sudoapt-get install openssh-server
便可以成功连接了。
参考链接:https://blog.51cto.com/u_13389043/5110026