背景
昨天装好xshell6后,却连接不上ubuntu,而ubuntu可以和主机ping通,并且两者子网掩码一样,说明在同一网段。
应该是ubuntu的防火墙和端口使能问题,参见文章https://blog.csdn.net/qq_40466467/article/details/80851025
但进行到最后一步安装openssh-server时,发生错误。
解决方法
1、先安装openssh-client指定版本(老版本不用删貌似)
apt-get install openssh-client=1:7.2p2-4ubuntu2.8
2、再安装openssh-server即可
apt-get install openssh-server