1、apt-get update
2、apt-get install openssh-server然后按Y
3、启动ssh服务/etc/init.d/ssh start
参考文章:https://blog.csdn.net/wgc0802402/article/details/91046196