ubuntu要用putty连接必须安装openssh-server,缺省是没有安装的。

解决办法:

sudo apt install openssh-server

这样就搞定了