命令:#ps -e|grep ssh

运行后如果有结果显示就说明ssh服务开启,如果没有结果,运行:

service sshd start或者service ssh start

如果系统提示unreconize service

#apt install openssh-client

#apt install openssh-server

安装以上deb包以后#service sshd/ssh start

启动服务以后远程未必能直接ssh ,需要修改sshd_config文件把默认passwordauthentication设置为yes(因为win10:ubuntu默认no)