- 修改sshd_config文件 /etc/ssh/sshd_config
PasswordAuthentication yes
PermitRootLogin yes - 启动
/etc/init.d/ssh start 或 service ssh start - 查看
/etc/init.d/ssh status 或 service ssh status
默认是22端口
自启动:update-rc.d -f ssh defaults
查看:文件/etc/rc*.d/*ssh 已存在
默认是22端口
自启动:update-rc.d -f ssh defaults
查看:文件/etc/rc*.d/*ssh 已存在