Skip to content

Instantly share code, notes, and snippets.

@cocobear
Created August 9, 2019 09:06
Show Gist options
  • Save cocobear/ad1a0ebaa3e653efa3a0ca9ae76a2ba2 to your computer and use it in GitHub Desktop.
Save cocobear/ad1a0ebaa3e653efa3a0ca9ae76a2ba2 to your computer and use it in GitHub Desktop.
同时设置N个服务器免密码登录
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