你仔细看看下这一段
ii) 允许使用ssh进行root用户登录: java -jar acp_commander.jar -t 192.168.1.10 -ip 192.168.1.10 -pw adminpasswordhere -c "sed -i 's/UsePAM yes/UsePAM no/g' /etc/sshd_config" 注:adminpasswordhere不是上面改过的密码!仍是:password iii) 执行下面这个命令启用ssh登录: java -jar acp_commander.jar -t 192.168.1.10 -ip 192.168.1.10 -pw adminpasswordhere -c "sed -i 's/PermitRootLogin no/PermitRootLogin yes/g' /etc/sshd_config" 注:adminpasswordhere不是上面改过的密码!仍是:password iv) 重启 ssh 服务: java -jar acp_commander.jar -t 192.168.1.10 -ip 192.168.1.10 -pw adminpasswordhere -c "/etc/init.d/sshd.sh restart" |