标签:bsp dep sudoer 节点 etc 拷贝 home nbsp echo
1、在每台ceph节点上都生成一个ceph-deploy用户,密码也为ceph-deply
sudo useradd -d /home/ceph-deploy -m ceph-deploy
passwd ceph-deploy
(ceph-deploy)
echo "ceph-deploy ALL = (root) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/ceph-deploy
sudo chmod 0440 /etc/sudoers.d/ceph-deploy
2、在其中一台节点上生成ssh key,并将ssh key 拷贝至其余ceph节点
su ceph-deploy
ssh-keygen 一路回车
ssh-copy-id ceph-deploy@ceph-node1
ssh-copy-id ceph-deploy@ceph-node2
ssh-copy-id ceph-deploy@ceph-node3
标签:bsp dep sudoer 节点 etc 拷贝 home nbsp echo
原文地址:http://www.cnblogs.com/elaron/p/7693574.html