1. shell 非交互 修改 root 密码:(echo "newpasswd";sleep 1;echo "newpasswd") | passwd > /dev/null
2. shell 允许 root 远程 ssh 登陆:sed -i "s/PermitRootLogin.*/PermitRootLogin yes/" /etc/ssh/sshd_config
hadoop-m-0.hadoop-headless-svc.development.svc.cluster.loca
1. shell 非交互 修改 root 密码:(echo "newpasswd";sleep 1;echo "newpasswd") | passwd > /dev/null
2. shell 允许 root 远程 ssh 登陆:sed -i "s/PermitRootLogin.*/PermitRootLogin yes/" /etc/ssh/sshd_config
hadoop-m-0.hadoop-headless-svc.development.svc.cluster.loca