首页 > 技术文章 > 一键关闭集群机器

leiwenbin627 2019-08-07 14:09 原文

创建秘钥对

ssh-keygen

 

传公钥

ssh-copy-id node1

ssh-copy-id node2

 

#!/bin/sh

ssh node1 "init 0"

ssh node2 "init 0"

sleep 5

init 0

推荐阅读