sudo apt-get install openssh-server # 安装服务sudo service ssh start # 启动服务ps –e|grep ssh # 查看ssh是否启动vim /etc/ssh/sshd_config # 修改配置文件 端口号和监听地址