解决finalshell连接虚拟机被拒绝:java.net. ConnectException: Connection refused: connect
·
这个问题的原因:一般Ubuntu都会默认安装openssh-client,但是没有安装openssh-server。
所以我们需要在Ubuntu上安装和配置openssh-server(参考了大佬的这篇博文,点击查看)
1.安装ssh服务器
sudo apt install openssh-server
2.安装ssh客户端
sudo apt install openssh-client
3.使用 sudo gedit /etc/ssh/ssh_config配置ssh客户端,去掉PasswordAuthentication yes前面的#号,保存后退出
更多推荐




所有评论(0)