Created
August 9, 2019 09:06
-
-
Save cocobear/ad1a0ebaa3e653efa3a0ca9ae76a2ba2 to your computer and use it in GitHub Desktop.
同时设置N个服务器免密码登录
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-keygen -b 4096 -t rsa | |
xpanes -c 'ssh-copy-id -i ~/.ssh/id_rsa.pub root@node{}' {0..5} | |
xpanes -c 'ssh root@node{}' {0..5} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment