for i in `cat ahost`;do ssh-copy-id -i /root/.ssh/id_rsa.pub [email protected]$i;done
for i in `cat ahost`;do ssh-copy-id -i /root/.ssh/id_rsa.pub "-p 2234 [email protected]$i";done
注意:`与~同键
时间: 2024-10-03 01:05:30
for i in `cat ahost`;do ssh-copy-id -i /root/.ssh/id_rsa.pub [email protected]$i;done
for i in `cat ahost`;do ssh-copy-id -i /root/.ssh/id_rsa.pub "-p 2234 [email protected]$i";done
注意:`与~同键