1. 快速安装

1.1. 安装mydan

 curl -L http://update.mydan.org|sudo bash
  • 在所有的机器上安装mydan,安装目录是/opt/mydan

1.2. 启动mydan服务

/opt/mydan/dan/bootstrap/bin/bootstrap --install
  • mydan的agent启动端口为65111

1.3. 生成一对密钥

cd /opt/mydan/etc/agent/auth && \
ssh-keygen -f mydan -P "" && \
mv mydan mydan.key && \
echo success
  • 在控制机上生成一对公钥私钥

1.4. 拷贝公钥

scp /opt/mydan/etc/agent/auth/mydan.pub 10.10.10.3:/opt/mydan/etc/agent/auth/mydan.pub
  • 把公钥拷贝到所有的机器上
Copyright 2017 - 2018. all right reserved,powered by Gitbook该文件修订时间: 2018-12-18 14:56:49

results matching ""

    No results matching ""