创建秘钥对
ssh-keygen
传公钥
ssh-copy-id node1
ssh-copy-id node2
#!/bin/sh
ssh node1 "init 0"
ssh node2 "init 0"
sleep 5
init 0
创建秘钥对
ssh-keygen
传公钥
ssh-copy-id node1
ssh-copy-id node2
#!/bin/sh
ssh node1 "init 0"
ssh node2 "init 0"
sleep 5
init 0