当你配置好你的Ubuntu ip并能与宿主机互相ping通,心怀期待的打开刚下载好的FileZilla输入ip用户名密码端口快速连接一气呵成,然后看到
无法连接到服务器
有没有一种可能,Ubuntu没有配置服务端,嘶
Ubuntu22.04默认安装了openssh-client,但是并没有openssh-server
因此,我们需要安装一个openssh-server ⬅这哥们会默认安装openssh-client
为了防止版本冲突,把openssh-client先删了,再安装openssh-client
sudo apt-get remove openssh-client
sudo apt-get update
sudo apt-get install openssh-server
然后,重启ssh服务
service ssh restart
如果只是想让自己主机能连上自己的Ubuntu的话,不需要做用户隔离等设置,直接连就行了
成功